Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,498 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In Windows 10, after set to dark theme, why my Win32 Desktop .net program will not convert to dark mode? thank you.
The dark/light mode change can be detected with WM_SETTINGCHANGE and lParam = "ImmersiveColorSet"
Then you can change colors from Windows.UI.ViewManagement.UIColorType
or Immersive color APIs like GetImmersiveColorFromColorSetEx
(I had posted a C++ sample to enumerate immersive colors in this thread)