MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / AllowDarkModeForWindow

Function AllowDarkModeForWindow

launcher/ui/WinDarkmode.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29VOID AllowDarkModeForWindow(HWND hWnd, BOOL Enable)
30{
31 if (hWnd)
32 {
33 ApplyStringProp(hWnd, Enable ? L"Enabled" : NULL, 0xA91E);
34 }
35 return;
36}
37
38BOOL IsWindows11()
39{

Callers 1

setWindowDarkModeEnabledFunction · 0.85

Calls 1

ApplyStringPropFunction · 0.85

Tested by

no test coverage detected