DWMWINDOWATTRIBUTE class

Flags used by the DwmGetWindowAttribute and DwmSetWindowAttribute functions to specify window attributes for Desktop Window Manager (DWM) non-client rendering.

Constructors

DWMWINDOWATTRIBUTE()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

DWMWA_ALLOW_NCPAINT → const int
Use with DwmSetWindowAttribute. Enables content rendered in the non-client area to be visible on the frame drawn by DWM. The pvAttribute parameter points to a value of type BOOL. TRUE to enable content rendered in the non-client area to be visible on the frame; otherwise, FALSE.
DWMWA_BORDER_COLOR → const int
The color of the thin border around a top-level window. (Supported on Windows 11 and above.)
DWMWA_CAPTION_BUTTON_BOUNDS → const int
Use with DwmGetWindowAttribute. Retrieves the bounds of the caption button area in the window-relative space. The retrieved value is of type RECT. If the window is minimized or otherwise not visible to the user, then the value of the RECT retrieved is undefined. You should check whether the retrieved RECT contains a boundary that you can work with, and if it doesn't then you can conclude that the window is minimized or otherwise not visible.
DWMWA_CAPTION_COLOR → const int
The color of the caption. (Supported on Windows 11 and above.)
DWMWA_CLOAK → const int
Use with DwmSetWindowAttribute. Cloaks the window such that it is not visible to the user. The window is still composed by DWM.
DWMWA_CLOAKED → const int
Use with DwmGetWindowAttribute. If the window is cloaked, provides one of the following values explaining why.
DWMWA_DISALLOW_PEEK → const int
Use with DwmSetWindowAttribute. Do not show peek preview for the window. The peek view shows a full-sized preview of the window when the mouse hovers over the window's thumbnail in the taskbar. If this attribute is set, hovering the mouse pointer over the window's thumbnail dismisses peek (in case another window in the group has a peek preview showing). The pvAttribute parameter points to a value of type BOOL. TRUE to prevent peek functionality, or FALSE to allow it.
DWMWA_EXCLUDED_FROM_PEEK → const int
Use with DwmSetWindowAttribute. Prevents a window from fading to a glass sheet when peek is invoked. The pvAttribute parameter points to a value of type BOOL. TRUE to prevent the window from fading during another window's peek, or FALSE for normal behavior.
DWMWA_EXTENDED_FRAME_BOUNDS → const int
Use with DwmGetWindowAttribute. Retrieves the extended frame bounds rectangle in screen space. The retrieved value is of type RECT.
DWMWA_FLIP3D_POLICY → const int
Use with DwmSetWindowAttribute. Sets how Flip3D treats the window. The pvAttribute parameter points to a value from the DWMFLIP3DWINDOWPOLICY enumeration.
DWMWA_FORCE_ICONIC_REPRESENTATION → const int
Use with DwmSetWindowAttribute. Forces the window to display an iconic thumbnail or peek representation (a static bitmap), even if a live or snapshot representation of the window is available. This value is normally set during a window's creation, and not changed throughout the window's lifetime. Some scenarios, however, might require the value to change over time. The pvAttribute parameter points to a value of type BOOL. TRUE to require a iconic thumbnail or peek representation; otherwise, FALSE.
DWMWA_FREEZE_REPRESENTATION → const int
Use with DwmSetWindowAttribute. Freeze the window's thumbnail image with its current visuals. Do no further live updates on the thumbnail image to match the window's contents.
DWMWA_HAS_ICONIC_BITMAP → const int
Use with DwmSetWindowAttribute. The window will provide a bitmap for use by DWM as an iconic thumbnail or peek representation (a static bitmap) for the window. DWMWA_HAS_ICONIC_BITMAP can be specified with DWMWA_FORCE_ICONIC_REPRESENTATION. DWMWA_HAS_ICONIC_BITMAP normally is set during a window's creation and not changed throughout the window's lifetime. Some scenarios, however, might require the value to change over time. The pvAttribute parameter points to a value of type BOOL. TRUE to inform DWM that the window will provide an iconic thumbnail or peek representation; otherwise, FALSE.
DWMWA_NCRENDERING_ENABLED → const int
Use with DwmGetWindowAttribute. Discovers whether non-client rendering is enabled. The retrieved value is of type BOOL. TRUE if non-client rendering is enabled; otherwise, FALSE.
DWMWA_NCRENDERING_POLICY → const int
Use with DwmSetWindowAttribute. Sets the non-client rendering policy. The pvAttribute parameter points to a value from the DWMNCRENDERINGPOLICY enumeration.
DWMWA_NONCLIENT_RTL_LAYOUT → const int
Use with DwmSetWindowAttribute. Specifies whether non-client content is right-to-left (RTL) mirrored. The pvAttribute parameter points to a value of type BOOL. TRUE if the non-client content is right-to-left (RTL) mirrored; otherwise, FALSE.
DWMWA_TEXT_COLOR → const int
The color of the caption text. (Supported on Windows 11 and above.)
DWMWA_TRANSITIONS_FORCEDISABLED → const int
Use with DwmSetWindowAttribute. Enables or forcibly disables DWM transitions. The pvAttribute parameter points to a value of type BOOL. TRUE to disable transitions, or FALSE to enable transitions.
DWMWA_USE_HOSTBACKDROPBRUSH → const int
Use with DwmSetWindowAttribute. Enables a non-UWP window to use host backdrop brushes. If this flag is set, then a Win32 app that calls Windows::UI::Composition APIs can build transparency effects using the host backdrop brush (see Compositor.CreateHostBackdropBrush). The retrieved value is of type BOOL. TRUE to enable host backdrop brushes for the window; otherwise, FALSE. (Supported on Windows 11 and above.)
DWMWA_USE_IMMERSIVE_DARK_MODE → const int
Allows a window to either use the accent color, or dark, according to the user Color Mode preferences. (Supported on Windows 11 and above.)
DWMWA_VISIBLE_FRAME_BORDER_THICKNESS → const int
Width of the visible border around a thick frame window. (Supported on Windows 11 and above.)
DWMWA_WINDOW_CORNER_PREFERENCE → const int
Controls the policy that rounds top-level window corners. (Supported on Windows 11 and above.)