There is "choose your default app mode" in Win10 setting with two options, "Light" and "Dark". I know an UWP app automatically respond to the setting and change its appearance automatically. Now the Win32 common file open dialog in a simple MFC app also respond to this setting and change its appearance automatically. I can respond to this setting change by respond to WM_SETTINGCHANGE, but how can I get the colors of this "Dark" mode in a Win32 app or a MFC app. I tried to use theme API as following, but it always return the color of "Current Theme" but not the "default app mode".
HTHEME hTheme = OpenThemeData (NULL, L"CompositedWindow::Window");
if (hTheme)
{
COLORREF btnFaceColor = GetThemeSysColor (hTheme, TMT_BTNFACE);
}
BTW, I'm not talking about high contrast Theme, but "choose your default app mode" setting. I suppose they are different settings which are set differently.
I guess if I can get correct HTHEME of it, then I can get all colors in it. but how?