ID2D1HwndRenderTarget::CheckWindowState method (d2d1.h)

Indicates whether the HWND associated with this render target is occluded.

Syntax

D2D1_WINDOW_STATE CheckWindowState();

Return value

Type: D2D1_WINDOW_STATE

A value that indicates whether the HWND associated with this render target is occluded.

Remarks

Note  If the window was occluded the last time that EndDraw was called, the next time that the render target calls CheckWindowState, it will return D2D1_WINDOW_STATE_OCCLUDED regardless of the current window state. If you want to use CheckWindowState to determine the current window state, you should call CheckWindowState after every EndDraw call and ignore its return value. This call will ensure that your next call to CheckWindowState state will return the actual window state.
 

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1.h
Library D2d1.lib
DLL D2d1.dll

See also

ID2D1HwndRenderTarget