title: Is there a list of valid parameter combinations for GetThemeColor / Visual Styles API
body: <p>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 </p>
  
  <pre><code>GetSysColor(COLOR_ACTIVECAPTION); 
  </code></pre>
  
  <p>as well as using 
      HTHEME hTheme = OpenThemeData(hwnd, L"WINDOW");      </p>
  
  <pre><code>HRESULT result = GetThemeColor(      
                  hTheme,
                  WP_CAPTION, 
                  CS_ACTIVE, 
                  TMT_FILLCOLORHINT, 
                  &amp;color);
  </code></pre>
  
  <p>Moreover i find myself trying various combinations of parameters to find out the color of the caption text. I know microsofts pages</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/bb773213%28VS.85%29.aspx" rel="noreferrer">Property Identifiers</a> and <a href="http://msdn.microsoft.com/en-us/library/bb773210%28VS.85%29.aspx" rel="noreferrer">Parts and States</a></p>
  
  <p>but most combination of these hundreds of parameters are invalid. Is there any list and/or description which combinations can be used?</p>
  
  <p>I.e. </p>
  
  <pre><code> GetThemeColor(      
                      hTheme,
                      WP_CAPTION, // BP_PUSHBUTTON,
                      CS_ACTIVE, 
                      TMT_CAPTIONTEXT,
                      &amp;color);
  </code></pre>
  
  <p>returns "Element not found". </p>