Skip to content

Commit db7456a

Browse files
committed
Support building with Windows 10 SDK, rather than Win 11
1 parent 118bddc commit db7456a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SettingsApp/HTCCSettingsApp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ class HTCCSettingsApp {
109109
}
110110
{
111111
BOOL darkMode { true};
112+
// Support building with the Windows 10 SDK
113+
#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE
114+
#define DWMWA_USE_IMMERSIVE_DARK_MODE 20
115+
#endif
112116
DwmSetWindowAttribute(mHwnd.get(), DWMWA_USE_IMMERSIVE_DARK_MODE, &darkMode, sizeof(darkMode));
113117
}
114118
RECT clientRect {};

0 commit comments

Comments
 (0)