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

Function ApplyStringProp

launcher/ui/WinDarkmode.cpp:13–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13VOID ApplyStringProp(HWND hWnd, LPCWSTR lpString, WORD Property)
14{
15 WORD Prop = (uint16_t)(uint64_t)GetPropW(hWnd, (LPCWSTR)(uint64_t)Property);
16 if (Prop)
17 {
18 DeleteAtom(Prop);
19 RemovePropW(hWnd, (LPCWSTR)(uint64_t)Property);
20 }
21 if (lpString)
22 {
23 ATOM v = AddAtomW(lpString);
24 if (v)
25 SetPropW(hWnd, (LPCWSTR)(uint64_t)Property, (HANDLE)(uint64_t)v);
26 }
27}
28
29VOID AllowDarkModeForWindow(HWND hWnd, BOOL Enable)
30{

Callers 1

AllowDarkModeForWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected