D2D1_WINDOW_STATE enumeration (d2d1.h)

Describes whether a window is occluded.

Syntax

typedef enum D2D1_WINDOW_STATE {
  D2D1_WINDOW_STATE_NONE = 0x0000000,
  D2D1_WINDOW_STATE_OCCLUDED = 0x0000001,
  D2D1_WINDOW_STATE_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_WINDOW_STATE_NONE
Value: 0x0000000
The window is not occluded.
D2D1_WINDOW_STATE_OCCLUDED
Value: 0x0000001
The window is occluded.
D2D1_WINDOW_STATE_FORCE_DWORD
Value: 0xffffffff

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

Requirement Value
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