I am trying to retrieve the background and text color of the taskbar and/or my applications main window. It turned out, that Windows 7 does not return the correct colors. If i i.e. switch to a pink theme, Windows 7 still returns light blue for window caption although thats not true. This happens using
GetSysColor(COLOR_ACTIVECAPTION);
as well as using HTHEME hTheme = OpenThemeData(hwnd, L"WINDOW");
HRESULT result = GetThemeColor(
hTheme,
WP_CAPTION,
CS_ACTIVE,
TMT_FILLCOLORHINT,
&color);
Moreover i find myself trying various combinations of parameters to find out the color of the caption text. I know microsofts pages
Property Identifiers and Parts and States
but most combination of these hundreds of parameters are invalid. Is there any list and/or description which combinations can be used?
I.e.
GetThemeColor(
hTheme,
WP_CAPTION, // BP_PUSHBUTTON,
CS_ACTIVE,
TMT_CAPTIONTEXT,
&color);
returns "Element not found".