<?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 : Toolbar butt&#111;n-size increases</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Toolbar butt&#111;n-size increases]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 20:02:16 +0000</pubDate>
  <lastBuildDate>Sun, 16 May 2004 10:45:56 +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=738</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[Toolbar butt&#111;n-size increases :  Why does the size of my toolbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=738&amp;PID=1961&amp;title=toolbar-buttonsize-increases#1961</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=530">Daniel Strigl</a><br /><strong>Subject:</strong> 738<br /><strong>Posted:</strong> 16 May 2004 at 10:45am<br /><br />Why does the size of my toolbar buttons increase when I add a drop-down button?<br>I have three toolbars, the first toolbar has a drop-down button. <br>Thefirst toolbar buttons are bigger than the buttons of the othertoolbars, that doesn't look good! <br>How can I prevent this?<br><br>Here is the code I am using:<br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; // Create standard toolbar<br>&nbsp;&nbsp;&nbsp; if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; !m_wndToolBar.LoadToolBar(IDR_MAINFRAME))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LOGERROR(_T("Failed to create standard toolbar."));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create standard toolbar.\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ASSERT(false);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1; // Failed to create standard toolbar<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; // Set title for the standard toolbar<br>&nbsp;&nbsp;&nbsp; m_wndToolBar.SetWindowText(_T("Standard"));<br><br>&nbsp;&nbsp;&nbsp; // Add drop down arrow to the standard toolbar<br>&nbsp;&nbsp;&nbsp; VERIFY(m_wndToolBar.AddDropDownButton(ID_FILE_OPEN, IDR_MRU, TRUE));<br><br>&nbsp;&nbsp;&nbsp; // Add text to the standard toolbar<br>&nbsp;&nbsp;&nbsp; for (int i = 0; i &lt; _countof(txtMapToolBar); ++i)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndToolBar.SetButtonText(m_wndToolBar.CommandToIndex(<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; txtMapToolBar<em>.nCmdID), txtMapToolBar<em>.lpszText);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; // Recalc toolbar layout<br>&nbsp;&nbsp;&nbsp; m_wndToolBar.AutoSizeToolbar();<br><br>&nbsp;&nbsp;&nbsp;  ////////////////////////////////////////////////////////////<br><br>&nbsp;&nbsp;&nbsp; //<br>&nbsp;&nbsp;&nbsp; // Create the other two toolbars...<br>&nbsp;&nbsp;&nbsp; //<br><br></pre></td></tr></table><br></em></em><span style="font-size:10px"><br /><br />Edited by Daniel Strigl</span>]]>
   </description>
   <pubDate>Sun, 16 May 2004 10:45:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=738&amp;PID=1961&amp;title=toolbar-buttonsize-increases#1961</guid>
  </item> 
 </channel>
</rss>