Open 1821746019 opened 7 months ago
weird, it works for me. maybe its failing to get the theme color.
try replacing at line 28, 29, 30 with
HTHEME them = OpenThemeData(0, IsDarkMode ? L"DarkMode::ItemsView" : L"ItemsView");
GetThemeColor(them, 0, 0, TMT_FILLCOLOR, &clr);
GetThemeColor(them, 0, 0, TMT_TEXTCOLOR, &clrTxt);
oh, also build in release. for whatever reason idk it fails to work when you build with debug
There is the same result after replacing in all the build configuarations
Is it normal that both szTitle and szWindowClass are empty string after LoadStringW
?
weird, does this work? Controls.zip
Yes, it works. How did you do it?
i just built it in x64 release...
I cloned the repository again and opened it in VS2022. Without modifying any configurations, I built the solution. A window appeared, but the dark mode seemed not to work properly.
I am very eager to enable dark mode for everything, including Bandizip and Process Hacker.
When I launch the demo, Controls.exe, no window is created or shown. Upon debugging, I discovered that MyRegisterClass returns 0, indicating that the window class registration failed.
I look forward to your response. I would appreciate it if you could provide me with some guidance on how to achieve my goals.