<?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 : Adding dynamic Toolbars...</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Adding dynamic Toolbars...]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 05:39:28 +0000</pubDate>
  <lastBuildDate>Wed, 25 Nov 2015 17:34:15 +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=22800</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[Adding dynamic Toolbars... : Found a solution but not sure...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22800&amp;PID=74139&amp;title=adding-dynamic-toolbars#74139</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8955">guiuser1</a><br /><strong>Subject:</strong> 22800<br /><strong>Posted:</strong> 25 November 2015 at 5:34pm<br /><br />Found a solution but not sure this is the expected one.<br>We create a optional toolbar in the CMainFrame::OnCreate like normal,<br>set the toolbar to be non-visible: pToolBar-&gt;SetVisible(FALSE);<br>Then when a document is loaded, and with the proper settings in place, we force that toolbar to be visible by call pToolBar-&gt;SetVisible(TRUE);<br><br>As a side affect (I believe this is a bug), when saving and restoring the toolbars via the CXTPPropExchangeXMLNode, the toolbar becomes visible all the time, when the app is reloaded.&nbsp; To fix that we had to put an additional call to pToolBar-&gt;SetVisible(FALSE); at the end of CMainFrame::ExchangeLayout(..)<br><br>It works but seems a bit untidy...<br>Suggestions?<br>]]>
   </description>
   <pubDate>Wed, 25 Nov 2015 17:34:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22800&amp;PID=74139&amp;title=adding-dynamic-toolbars#74139</guid>
  </item> 
  <item>
   <title><![CDATA[Adding dynamic Toolbars... : I&amp;#039;m a bit stuck in how to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22800&amp;PID=74138&amp;title=adding-dynamic-toolbars#74138</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8955">guiuser1</a><br /><strong>Subject:</strong> 22800<br /><strong>Posted:</strong> 25 November 2015 at 2:52pm<br /><br />I'm a bit stuck in how to add toolbars dynamically for a MDI application.<br>Depending on the settings, we optionally want to display a new toolbar...<br><br>We are so far a bit puzzled about how to go about this.<br><br>Any pointers?<br>]]>
   </description>
   <pubDate>Wed, 25 Nov 2015 14:52:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22800&amp;PID=74138&amp;title=adding-dynamic-toolbars#74138</guid>
  </item> 
 </channel>
</rss>