DWMNCRENDERINGPOLICY enumeration (dwmapi.h)

Flags used by the DwmSetWindowAttribute function to specify the non-client area rendering policy.

Syntax

typedef enum DWMNCRENDERINGPOLICY {
  DWMNCRP_USEWINDOWSTYLE,
  DWMNCRP_DISABLED,
  DWMNCRP_ENABLED,
  DWMNCRP_LAST
} ;

Constants

 
DWMNCRP_USEWINDOWSTYLE
The non-client rendering area is rendered based on the window style.
DWMNCRP_DISABLED
The non-client area rendering is disabled; the window style is ignored.
DWMNCRP_ENABLED
The non-client area rendering is enabled; the window style is ignored.
DWMNCRP_LAST
The maximum recognized DWMNCRENDERINGPOLICY value, used for validation purposes.

Remarks

To use a DWMNCRENDERINGPOLICY value, set the dwAttribute parameter of the DwmSetWindowAttribute function to DWMWA_NCRENDERING_POLICY. Set the pvAttribute parameter to the DWMNCRENDERINGPOLICY value.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header dwmapi.h