<?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 : dynamically add butt&#111;ns to toolbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : dynamically add butt&#111;ns to toolbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 17:09:15 +0000</pubDate>
  <lastBuildDate>Fri, 27 Jan 2006 00:54:41 +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=3560</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[dynamically add butt&#111;ns to toolbar : Just repeat code you have in OnSize,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3560&amp;PID=10708&amp;title=dynamically-add-buttons-to-toolbar#10708</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3560<br /><strong>Posted:</strong> 27 January 2006 at 12:54am<br /><br /><P>Just repeat code you have in OnSize, or call dialog OnSize as method</P><P>something:</P><P>CSize sz = toolbar-&gt;CalcDynamicLayout(0, LM_HORZ|<strong>LM_COMMIT</strong>);<BR>toolbar-&gt;SetWindowPos(&amp;CWnd::wndTop, 0, 0, sz.cx, sz.cy, SWP_NOMOVE);<BR></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 27 Jan 2006 00:54:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3560&amp;PID=10708&amp;title=dynamically-add-buttons-to-toolbar#10708</guid>
  </item> 
  <item>
   <title><![CDATA[dynamically add butt&#111;ns to toolbar : MDI application but the window...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3560&amp;PID=10697&amp;title=dynamically-add-buttons-to-toolbar#10697</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1715">spelhatre</a><br /><strong>Subject:</strong> 3560<br /><strong>Posted:</strong> 26 January 2006 at 2:11am<br /><br />MDI application but the window with the dynamic toolbar is a dialogbox]]>
   </description>
   <pubDate>Thu, 26 Jan 2006 02:11:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3560&amp;PID=10697&amp;title=dynamically-add-buttons-to-toolbar#10697</guid>
  </item> 
  <item>
   <title><![CDATA[dynamically add butt&#111;ns to toolbar :   ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3560&amp;PID=10696&amp;title=dynamically-add-buttons-to-toolbar#10696</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1715">spelhatre</a><br /><strong>Subject:</strong> 3560<br /><strong>Posted:</strong> 26 January 2006 at 2:11am<br /><br /><br>]]>
   </description>
   <pubDate>Thu, 26 Jan 2006 02:11:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3560&amp;PID=10696&amp;title=dynamically-add-buttons-to-toolbar#10696</guid>
  </item> 
  <item>
   <title><![CDATA[dynamically add butt&#111;ns to toolbar : Is it dialog application? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3560&amp;PID=10687&amp;title=dynamically-add-buttons-to-toolbar#10687</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3560<br /><strong>Posted:</strong> 25 January 2006 at 10:54am<br /><br /><P>Is it dialog application?</P>]]>
   </description>
   <pubDate>Wed, 25 Jan 2006 10:54:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3560&amp;PID=10687&amp;title=dynamically-add-buttons-to-toolbar#10687</guid>
  </item> 
  <item>
   <title><![CDATA[dynamically add butt&#111;ns to toolbar : I use control CXTPToolBar and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3560&amp;PID=10686&amp;title=dynamically-add-buttons-to-toolbar#10686</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1715">spelhatre</a><br /><strong>Subject:</strong> 3560<br /><strong>Posted:</strong> 25 January 2006 at 10:30am<br /><br />I use control CXTPToolBar and dynamically add buttons:<br>toolbar-&gt;GetControls()-&gt;Add(xtpControlButton, ....)<br>But buttons and not drawn correctly.<br>I see only a part of the first button.<br>If my toolbar is floating, it's OK.<br>But if it is docked (at the top in my case) I have to undock it to see my buttons.<br><br>I tried several things but unsuccessfully:<br><br>CSize sz = toolbar-&gt;CalcDynamicLayout(0, LM_HORZ);<br>toolbar-&gt;SetWindowPos(&amp;CWnd::wndTop, 0, 0, sz.cx, sz.cy, 0);<br><br>OR<br> &nbsp;toolbar-&gt;GetParent()-&gt;RepositionBars(AFX_IDW_CON TROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);<br><br>OR<br><br>toolbar-&gt;RedrawWindow();<br>toolbar-&gt;UpdateWindow();<br>toolbar-&gt;GetParent()-&gt;UpdateWindow();<br>]]>
   </description>
   <pubDate>Wed, 25 Jan 2006 10:30:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3560&amp;PID=10686&amp;title=dynamically-add-buttons-to-toolbar#10686</guid>
  </item> 
 </channel>
</rss>