<?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 : Scaling the Status Bar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Scaling the Status Bar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 23 Apr 2026 00:37:13 +0000</pubDate>
  <lastBuildDate>Thu, 20 Nov 2008 18:23:29 +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=12747</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[Scaling the Status Bar : I was able to scale the ribbon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12747&amp;PID=43051&amp;title=scaling-the-status-bar#43051</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3003">mrmathis</a><br /><strong>Subject:</strong> 12747<br /><strong>Posted:</strong> 20 November 2008 at 6:23pm<br /><br />I was able to scale the ribbon using the SetFontHeght technique in the sample&nbsp; (see <a href="https://forum.codejock.com/forum_posts.asp?TID=12612" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=12612</A>).&nbsp; I'm trying to extend that scaling to the status bar.&nbsp; It is mostly working.&nbsp; Right after I create it, I do this:<DIV>&nbsp;</DIV><DIV><DIV>&nbsp;&nbsp;&nbsp; CFont* pFont = m_pStatusBar-&gt;GetFont();</DIV><DIV>&nbsp;&nbsp;&nbsp; LOGFONT lf = {0};</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;if (pFont-&gt;GetLogFont(&amp;lf))</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;{</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lf.lfHeight *= 2;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CFont font;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;font.CreateFontIndirect(&amp;lf);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_pStatusBar-&gt;SetFont(&amp;font);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;}</DIV><DIV>&nbsp;</DIV><DIV>The part I can't whip is getting the icons to scale up on fake buttons displayed on my status bar.&nbsp; My original code looked something like this:</DIV><DIV>&nbsp;</DIV><DIV><DIV><DIV>CXTPStatusBarPane* pPane =&nbsp;This-&gt;m_pStatusBar-&gt;AddIndicator(nId, iIndex);</DIV><DIV><DIV>pPane-&gt;SetIconIndex(nId);</DIV><DIV>pPane-&gt;SetText(_T(""));</DIV><DIV>pPane-&gt;SetButton();</DIV><DIV>pPane-&gt;BestFit();</DIV><DIV>&nbsp;</DIV><DIV>At this point I changed the BestFit call to a SetWidth call, and the pane resized like I asked, but the icon stayed little &amp; to the side.&nbsp; I had previously changed the paint manager's m_bAutoResizeIcons variable for the ribbon changes, but that doesn't seem to affect the status bar.&nbsp; Unless, that is, there is a different paint manager involved that I can't see with the debugger.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>Granted, the icons I have supplied to the image manager are small, but I was hoping that they would scale up as they did on the ribbon.&nbsp; Is there some trick I haven't discovered to make this work?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV>]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 18:23:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12747&amp;PID=43051&amp;title=scaling-the-status-bar#43051</guid>
  </item> 
 </channel>
</rss>