<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Bug CXTPStatusBarSwitchPane using Vector icons</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Bug CXTPStatusBarSwitchPane using Vector icons]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 19 May 2026 02:23:23 +0000</pubDate>
  <lastBuildDate>Fri, 18 Jul 2025 08:40:30 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=24583</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Bug CXTPStatusBarSwitchPane using Vector icons : Using vector icons in an StatusBarSwitchPane...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24583&amp;PID=79235&amp;title=bug-cxtpstatusbarswitchpane-using-vector-icons#79235</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9723">hpuck</a><br /><strong>Subject:</strong> 24583<br /><strong>Posted:</strong> 18 July 2025 at 8:40am<br /><br /><div>Using vector icons in an StatusBarSwitchPane causes:</div><div>* asserts in debug build</div><div>* icons not drawn centered but left aligned</div><div><br></div><div>When debugging using Office2013 theme the Asset is triggered by the call to</div><div>pIcon-&gt;GetExtent()</div><div>and the left aligned drawing happens because due to sz being zeroed&nbsp;</div><div>Since ICON_SMALL is used a preferred icon size, why not use a fixed icon size for vector icons?</div><div><br></div><div><br></div><div><div>int CXTPStatusBarThemeOffice2013::DrawStatusBarSwitchPane(CDC* pDC, CRect rcItem, CXTPStatusBarSwitchPane* pPane)</div></div><div>{</div><div>.....</div><div><br></div><div>&nbsp; CXTPImageManagerIcon* pIcon =</div><div><span style="white-space: normal;"><span style="white-space:pre">				</span>pPane-&gt;GetStatusBar()-&gt;GetImageManager()-&gt;GetImage(pSwitch-&gt;nID, ICON_SMALL);</span></div><div><span style="white-space: normal;">&nbsp; if (pIcon)</span></div><div><span style="white-space: normal;">&nbsp; {</span></div><div><span style="white-space: normal;">&nbsp; &nbsp; &nbsp;CSize sz = CXTPPaintManager::AdjustDpiIconSize(</span></div><div><span style="white-space: normal;"><span style="white-space:pre">				</span>pIcon,<b><font color="#ff0000"> pIcon-&gt;GetExtent()</font>,</b></span></div><div><span style="white-space: normal;"><span style="white-space:pre">				</span>XTP_SAFE_GET2(pPane, GetStatusBar(), GetCommandBars(), NULL),&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rcItem.Size()</span></div><div><span style="white-space: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );</span></div><div><span style="white-space: normal;">.....</span></div>]]>
   </description>
   <pubDate>Fri, 18 Jul 2025 08:40:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24583&amp;PID=79235&amp;title=bug-cxtpstatusbarswitchpane-using-vector-icons#79235</guid>
  </item> 
 </channel>
</rss>