title: How do I ask Windows for the size of system tray icons?
body: <p>I noticed that my app sends icons to the Windows tray with a size of 16x16 pixels--and my Vista PC I've got a doublewide taskbar that appears to show icons at 18x18. The resizing artifacts on my app's icon look awful.  How can I ask Windows what size the icons should be?</p>
  <p><strong>Edit</strong></p>
  <p>I'm generating the icon dynamically, with a pixel font text overlay. It seems wasteful to generate a bunch of icon sizes dynamically, so it would be nice to avoid building an icon with all the &quot;possible&quot; sizes (not that I'm even sure what those are).</p>
  <ul>
  <li><strong>GetSystemMetrics(<code>SM_CXSMICON</code>)</strong> <em>returns 16--the incorrect value.</em></li>
  <li><strong>GetThemeBackgroundContentRect</strong> didn't help, either.</li>
  </ul>