<?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 : Loading Designer CommandBars from DLLs</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Loading Designer CommandBars from DLLs]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 01:37:30 +0000</pubDate>
  <lastBuildDate>Wed, 25 Mar 2009 04:03:13 +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=13786</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[Loading Designer CommandBars from DLLs : You can copy toolbars around between...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13786&amp;PID=47086&amp;title=loading-designer-commandbars-from-dlls#47086</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 13786<br /><strong>Posted:</strong> 25 March 2009 at 4:03am<br /><br />You can copy toolbars around between loaded commandbars, though.<br><br>I had a similar issue: I wanted to use one designer file and share icons and commands between the command bar and some toolbars located elsewhere, so maybe this will help you:<br><br><i>Adds a toolbar from a designer-loadded commandbar to a CWnd-derived object (CTreePane). Error handling omitted for clarity</i><br><br><font face="Courier New, Courier, mono">void CTreePane::OnSize(UINT nType, int cx, int cy)<br>{<br>&nbsp;&nbsp;&nbsp; CWnd::OnSize(nType, cx, cy);<br>&nbsp;&nbsp;&nbsp; if (!m_toolscopied) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CMainFrame *pframe = (CMainFrame *)AfxGetMainWnd();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPCommandBars *pcmdbars = pframe-&gt;GetCommandBars();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPToolBar *ptbar = pcmdbars-&gt;GetToolBar(TBR_TREE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPControls *pcontrols = ptbar-&gt;GetControls()-&gt;Duplicate(TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_toolbar.SetControls(pcontrols);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_toolscopied = TRUE;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; m_toolbar.EnableDocking(xtpFlagAlignTop|xtpFlagHideWrap|xtpFlagStretched);<br>&nbsp;&nbsp;&nbsp;&nbsp; }<br>//...<br></font><br>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 04:03:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13786&amp;PID=47086&amp;title=loading-designer-commandbars-from-dlls#47086</guid>
  </item> 
  <item>
   <title><![CDATA[Loading Designer CommandBars from DLLs : Hi,  With designer file you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13786&amp;PID=47073&amp;title=loading-designer-commandbars-from-dlls#47073</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13786<br /><strong>Posted:</strong> 25 March 2009 at 2:19am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>With designer file you can load only whole commandbars.</DIV>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 02:19:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13786&amp;PID=47073&amp;title=loading-designer-commandbars-from-dlls#47073</guid>
  </item> 
  <item>
   <title><![CDATA[Loading Designer CommandBars from DLLs : My app loads some of it&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13786&amp;PID=47056&amp;title=loading-designer-commandbars-from-dlls#47056</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5087">voripteth</a><br /><strong>Subject:</strong> 13786<br /><strong>Posted:</strong> 24 March 2009 at 5:45pm<br /><br />My app loads some of it's menus and toolbars from DLLs.&nbsp; How do I load Designer created elements (CommandBars and Menus) from various DLL locations?&nbsp; <br><br>I looked at your Scribble example but it seems to load the entire UI from a DLL.&nbsp; My app needs to add elements to an exisitng UI.&nbsp; This would include inserting CommandBars to specific positions in the existing UI.<br><br>Thanks for your help!<br><br>]]>
   </description>
   <pubDate>Tue, 24 Mar 2009 17:45:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13786&amp;PID=47056&amp;title=loading-designer-commandbars-from-dlls#47056</guid>
  </item> 
 </channel>
</rss>