D2D1_WINDOW_STATE Enumeration

Describes whether a window is occluded.

Syntax

typedef enum D2D1_WINDOW_STATE {
  D2D1_WINDOW_STATE_NONE,
  D2D1_WINDOW_STATE_OCCLUDED,
  D2D1_WINDOW_STATE_FORCE_DWORD
} ;

Constants

D2D1_WINDOW_STATE_NONE The window is not occluded.
D2D1_WINDOW_STATE_OCCLUDED The window is occluded.
D2D1_WINDOW_STATE_FORCE_DWORD

Remarks

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

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
Header d2d1.h

See Also

CheckWindowState