D2D1_WINDOW_STATE enumeration

Describes whether a window is occluded.

Syntax


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

Constants

D2D1_WINDOW_STATE_NONE

The window is not occluded.

D2D1_WINDOW_STATE_OCCLUDED

The window is occluded.

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]

Minimum supported phone

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

Header

D2d1.h

See also

CheckWindowState

 

 

Community Additions

ADD
Show:
© 2014 Microsoft