title: Inactive caption text color in Windows 10
body: <p>In Windows 10, how do you get the color of inactive caption text? </p>
  
  <p>In the example below, "Untitled - Notepad" is gray when window is inactive:</p>
  
  <p><a href="https://i.stack.imgur.com/j38Pc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/j38Pc.png" alt="Notepad active and inactive window"></a></p>
  
  <p>But the color I get is black when I try the following functions:</p>
  
  <pre><code>color = GetSysColor(COLOR_INACTIVECAPTIONTEXT);
  //color = black, wrong
  
  HTHEME htheme = OpenThemeData(hwnd, L"WINDOW");
  color = GetThemeSysColor(htheme, COLOR_INACTIVECAPTIONTEXT);
  //color = black, wrong
  
  GetThemeColor(htheme, WP_CAPTION, CS_INACTIVE, TMT_TEXTCOLOR, &amp;color);
  //color = black, wrong
  </code></pre>
  
  <p><code>DrawThemeText</code> and <code>DrawThemeTextEx</code> also print the inactive caption in black. </p>
  
  <p>All of these functions work fine in Windows 7 because inactive caption remains the same color, only the Aero glass thing changes color. But it's not the same in Windows 10.</p>