Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document USE_IMMERSIVE_DARK_MODE. #966

Merged
merged 1 commit into from
Nov 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion sdk-api-src/content/dwmapi/ne-dwmapi-dwmwindowattribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ Use with <a href="/windows/desktop/api/dwmapi/nf-dwmapi-dwmsetwindowattribute">D

<b>Windows 7 and earlier: </b>This value is not supported.

### -field DWMWA_USE_IMMERSIVE_DARK_MODE

Use with <a href="/windows/desktop/api/dwmapi/nf-dwmapi-dwmsetwindowattribute">DwmSetWindowAttribute</a>. Sets the non-client area when the window is inactive to dark, as well as any and all scrollbars in all of a window's controls.

<b>Windows 10 before build 10.0.17763: </b>This value is not supported.

<b>Windows 10 build 10.0.17763 until 10.0.18985: </b>This is the value 19.

<b>Windows 10 build 10.0.18985 or later: </b>This is value 20, to use the previous value with versions that define this as 20 use DWMWA_USE_IMMERSIVE_DARK_MODE_BEFORE_20H1 instead.

### -field DWMWA_LAST

The maximum recognized <b>DWMWINDOWATTRIBUTE</b> value, used for validation purposes.
Expand All @@ -151,4 +161,4 @@ Use with [DwmSetWindowAttribute](/windows/win32/api/dwmapi/nf-dwmapi-dwmsetwindo

* [DwmGetWindowAttribute function](/windows/desktop/api/dwmapi/nf-dwmapi-dwmgetwindowattribute)
* [DwmSetWindowAttribute function](/windows/desktop/api/dwmapi/nf-dwmapi-dwmsetwindowattribute)
* [Enable and control DWM composition](/windows/desktop/dwm/composition-ovw)
* [Enable and control DWM composition](/windows/desktop/dwm/composition-ovw)