ID2D1HwndRenderTarget::CheckWindowState method

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

Syntax


virtual D2D1_WINDOW_STATE CheckWindowState() = 0;

Parameters

This method has no parameters.

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

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1.h

Library

D2d1.lib

DLL

D2d1.dll

See also

ID2D1HwndRenderTarget

 

 

Community Additions

ADD
Show:
© 2014 Microsoft