Skip to content

Commit f57855b

Browse files
authored
DWMA -> DWMWA (#3600)
1 parent de46499 commit f57855b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hub/apps/desktop/modernize/apply-windows-themes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ HRESULT DwmSetWindowAttribute(
231231
);
232232
```
233233

234-
After passing `hWnd` (the handle to the window you want to change) as your first parameter, you need to pass in `DWMA_USE_IMMERSIVE_DARK_MODE` as the `dwAttribute` parameter. This is a constant in the DWM API that lets the Windows frame be drawn in Dark mode colors when the Dark mode system setting is enabled. If you switch to Light mode, you will have to change `DWMA_USE_IMMERSIVE_DARK_MODE` from 20 to 0 for the title bar to be drawn in light mode colors.
234+
After passing `hWnd` (the handle to the window you want to change) as your first parameter, you need to pass in `DWMWA_USE_IMMERSIVE_DARK_MODE` as the `dwAttribute` parameter. This is a constant in the DWM API that lets the Windows frame be drawn in Dark mode colors when the Dark mode system setting is enabled. If you switch to Light mode, you will have to change `DWMWA_USE_IMMERSIVE_DARK_MODE` from 20 to 0 for the title bar to be drawn in light mode colors.
235235

236236
The `pvAttribute` parameter points to a value of type `BOOL` (which is why you made the `BOOL` value earlier). You need `pvAttribute` to be `TRUE` to honor Dark mode for the window. If `pvAttribute` is `FALSE`, the window will use Light Mode.
237237

@@ -275,4 +275,4 @@ When this code is run, the app title bar should be dark:
275275
276276
- [Make your app great on Windows 11](../../get-started/make-apps-great-for-windows.md)
277277
- [Accessible text requirements](../../design/accessibility/accessible-text-requirements.md)
278-
- [Desktop Windows Manager (DWM)](/windows/win32/dwm/dwm-overview)
278+
- [Desktop Windows Manager (DWM)](/windows/win32/dwm/dwm-overview)

0 commit comments

Comments
 (0)