<?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 : Dll embeded FrameWnd wont load menu bar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Dll embeded FrameWnd wont load menu bar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 16:35:01 +0000</pubDate>
  <lastBuildDate>Fri, 28 Aug 2009 04:11:42 +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=15040</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[Dll embeded FrameWnd wont load menu bar : please follow the final solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52498&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5354">johnmichael</a><br /><strong>Subject:</strong> 15040<br /><strong>Posted:</strong> 28 August 2009 at 4:11am<br /><br />please follow the final solution in the following post for a better solution:<br><br>http://forum.codejock.com/forum_posts.asp?TID=15051<br>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 04:11:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52498&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52498</guid>
  </item> 
  <item>
   <title><![CDATA[Dll embeded FrameWnd wont load menu bar : Okay here is the full solution:&amp;lt;code&amp;gt;BOOL...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52379&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52379</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5354">johnmichael</a><br /><strong>Subject:</strong> 15040<br /><strong>Posted:</strong> 26 August 2009 at 3:57am<br /><br />Okay here is the full solution:<br><br>&lt;code&gt;<br>BOOL CComponentEditorDialog::OnInitDialog()<br>{<br>&nbsp;&nbsp;&nbsp; LoadAccelTable( MAKEINTRESOURCE(IDR_COMPONENT_EDITOR_MENU) );<br><br>&nbsp;&nbsp;&nbsp; CRect rc;<br>&nbsp;&nbsp;&nbsp; GetClientRect( &amp;rc );<br><br>&nbsp;&nbsp;&nbsp; HMENU menu = LoadMenu(GetHInstance(),MAKEINTRESOURCE(IDR_COMPONENT_EDITOR_MENU));<br>&nbsp;&nbsp;&nbsp; CMenu * pMenu = new CMenu();<br>&nbsp;&nbsp;&nbsp; if ( pMenu )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ( pMenu-&gt;Attach(menu) )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("success created menu bar\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create menu bar\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; try<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!InitCommandBars())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; catch (CResourceException *e)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; e-&gt;Delete();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; // Get a pointer to the command bars object.<br>&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<br>&nbsp;&nbsp;&nbsp; if(pCommandBars == NULL)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create command bars object.\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; CXTPCommandBar * pMenuBar = pCommandBars-&gt;Add(_T("Menu Bar"),xtpBarTop); //creates a generic toolbar <br>&nbsp;&nbsp;&nbsp; if ( pMenuBar == NULL )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create menu bar\n");<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pMenuBar-&gt;LoadMenu(pMenu); //then load the menu into it<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pMenuBar-&gt;SetFlags(xtpFlagStretched);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pMenuBar-&gt;EnableCustomization(FALSE);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;InstallDockingPanes(this);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetTheme(xtpPaneThemeOffice2003);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetThemedFloatingFrames(TRUE);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetAlphaDockingContext(TRUE);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetShowDockingContextStickers(TRUE);<br><br>&nbsp;&nbsp;&nbsp; m_componentGraph.Create(WS_CHILD|WS_CLIPCHILDREN|WS_VISIBLE,rc,this,AFX_IDW_PANE_FIRST);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br>&lt;/code&gt;<br><br><br>So if this is possible through manual loading of the menu and setting, there is a bug in the CXTPCommandBars::SetMenu function which does not look to load the resource from the correct module instance?<br><br>below is the GetHInstance function which return the module instance handle for the current module:<br><br>&lt;code&gt;<br>//////////////////////////////////////////////////////////////////////////<br>HINSTANCE GetHInstance()<br>{&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; MEMORY_BASIC_INFORMATION mbi;<br>&nbsp;&nbsp;&nbsp; CHAR szModule&#091;MAX_PATH&#093;;<br><br>&nbsp;&nbsp;&nbsp; SetLastError(ERROR_SUCCESS);<br>&nbsp;&nbsp;&nbsp; if (VirtualQuery(GetHInstance,&amp;mbi,sizeof(mbi)))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (GetModuleFileName((HINSTANCE)mbi.AllocationBase,szModule,sizeof(szModule)))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return (HINSTANCE)mbi.AllocationBase;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return NULL;<br>}<br>&lt;/code&gt;<br><br>This can then be used to load the resource from, I propose that the CXTPCommandBars::SetMenu function needs to handle the case of loading menu resources from the current module.<br><br>]]>
   </description>
   <pubDate>Wed, 26 Aug 2009 03:57:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52379&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52379</guid>
  </item> 
  <item>
   <title><![CDATA[Dll embeded FrameWnd wont load menu bar :  //removed in favour of second...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52378&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52378</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5354">johnmichael</a><br /><strong>Subject:</strong> 15040<br /><strong>Posted:</strong> 26 August 2009 at 3:44am<br /><br />//removed in favour of second post<br>]]>
   </description>
   <pubDate>Wed, 26 Aug 2009 03:44:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52378&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52378</guid>
  </item> 
  <item>
   <title><![CDATA[Dll embeded FrameWnd wont load menu bar : Yes, you need second method but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52377&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15040<br /><strong>Posted:</strong> 26 August 2009 at 3:32am<br /><br />Yes, you need second method but after you load menu, convert this pMenu to pMenuBar:<DIV>&nbsp;</DIV><DIV>pMenuBar-&gt;LoadMenu(pMenu) ;</DIV>]]>
   </description>
   <pubDate>Wed, 26 Aug 2009 03:32:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52377&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52377</guid>
  </item> 
  <item>
   <title><![CDATA[Dll embeded FrameWnd wont load menu bar : Can you give a little more code:here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52360&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52360</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5354">johnmichael</a><br /><strong>Subject:</strong> 15040<br /><strong>Posted:</strong> 25 August 2009 at 6:07am<br /><br />Can you give a little more code:<br><br>here is my manual attemp at loading it:<br><br>&lt;code&gt;<br>BOOL CComponentEditorDialog::OnInitDialog()<br>{<br>&nbsp;&nbsp;&nbsp; LoadAccelTable( MAKEINTRESOURCE(IDR_COMPONENT_EDITOR_MENU) );<br><br>&nbsp;&nbsp;&nbsp; CRect rc;<br>&nbsp;&nbsp;&nbsp; GetClientRect( &amp;rc );<br><br>&nbsp;&nbsp;&nbsp; CMenu * pMenu = new CMenu();<br>&nbsp;&nbsp;&nbsp; if ( pMenu )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ( pMenu-&gt;LoadMenu(IDR_COMPONENT_EDITOR_MENU) ) //this command fails <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("success created menu bar\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create menu bar\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;InstallDockingPanes(this);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetTheme(xtpPaneThemeOffice2003);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetThemedFloatingFrames(TRUE);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetAlphaDockingContext(TRUE);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetShowDockingContextStickers(TRUE);<br><br>&nbsp;&nbsp;&nbsp; m_componentGraph.Create(WS_CHILD|WS_CLIPCHILDREN|WS_VISIBLE,rc,this,AFX_IDW_PANE_FIRST);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; OnFileOpen();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br>&lt;/code&gt;<br><br>I've also tried this:<br><br>&lt;code&gt;<br>BOOL CComponentEditorDialog::OnInitDialog()<br>{<br>&nbsp;&nbsp;&nbsp; LoadAccelTable( MAKEINTRESOURCE(IDR_COMPONENT_EDITOR_MENU) );<br><br>&nbsp;&nbsp;&nbsp; CRect rc;<br>&nbsp;&nbsp;&nbsp; GetClientRect( &amp;rc );<br><br>&nbsp;&nbsp;&nbsp; HMENU menu = LoadMenu(GetHInstance(),MAKEINTRESOURCE(IDR_COMPONENT_EDITOR_MENU));<br>&nbsp;&nbsp;&nbsp; CMenu * pMenu = new CMenu();<br>&nbsp;&nbsp;&nbsp; if ( pMenu )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ( pMenu-&gt;Attach(menu) )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("success created menu bar\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create menu bar\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;InstallDockingPanes(this);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetTheme(xtpPaneThemeOffice2003);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetThemedFloatingFrames(TRUE);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetAlphaDockingContext(TRUE);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetShowDockingContextStickers(TRUE);<br><br>&nbsp;&nbsp;&nbsp; m_componentGraph.Create(WS_CHILD|WS_CLIPCHILDREN|WS_VISIBLE,rc,this,AFX_IDW_PANE_FIRST);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; OnFileOpen();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br>&lt;/code&gt;<br><br>This last method seems to work but the menu bar does not appear on the the screen.?<br>]]>
   </description>
   <pubDate>Tue, 25 Aug 2009 06:07:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52360&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52360</guid>
  </item> 
  <item>
   <title><![CDATA[Dll embeded FrameWnd wont load menu bar : Hi,  You can load it manually...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52358&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52358</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15040<br /><strong>Posted:</strong> 25 August 2009 at 5:42am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can load it manually and set wthi pMenuBar-&gt;LoadMenu() method.</DIV>]]>
   </description>
   <pubDate>Tue, 25 Aug 2009 05:42:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52358&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52358</guid>
  </item> 
  <item>
   <title><![CDATA[Dll embeded FrameWnd wont load menu bar : Hey,I&amp;#039;m developing a view...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52353&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52353</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5354">johnmichael</a><br /><strong>Subject:</strong> 15040<br /><strong>Posted:</strong> 25 August 2009 at 3:41am<br /><br />Hey,<br><br>I'm developing a view pane that can be docked to the main window of the application. The view pane has a commandbar. I got this all working fine but then I had need to seperate the entire viewpane and its children out into a seperate dll and now the menu bar fails to load. I'll give you the following snippet from the dll.<br><br>&lt;code&gt;<br>BOOL CComponentEditorDialog::OnInitDialog()<br>{<br>&nbsp;&nbsp;&nbsp; LoadAccelTable( MAKEINTRESOURCE(IDR_COMPONENT_EDITOR_MENU) ); <b>//this is the menu I wish to load and show on the toolbars</b><br><br>&nbsp;&nbsp;&nbsp; CRect rc;<br>&nbsp;&nbsp;&nbsp; GetClientRect( &amp;rc );<br><br><br>&nbsp;&nbsp;&nbsp; try<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!InitCommandBars())<b> //this succeeds</b><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; catch (CResourceException *e)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; e-&gt;Delete();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; // Get a pointer to the command bars object.<br>&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars(); <b>//this returns a valid pointer</b><br>&nbsp;&nbsp;&nbsp; if(pCommandBars == NULL)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create command bars object.\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; // Add the menu bar<br>&nbsp;&nbsp;&nbsp; CXTPCommandBar* pMenuBar = pCommandBars-&gt;SetMenu( _T("Menu Bar"), IDR_COMPONENT_EDITOR_MENU); <b>//this fails</b><br><br>&nbsp;&nbsp;&nbsp; if ( pMenuBar == NULL )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0("Failed to create menu bar\n");<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pMenuBar-&gt;SetFlags(xtpFlagStretched);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pMenuBar-&gt;EnableCustomization(FALSE);<br>&nbsp;&nbsp;&nbsp; }<br><br><br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;InstallDockingPanes(this);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetTheme(xtpPaneThemeOffice2003);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetThemedFloatingFrames(TRUE);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetAlphaDockingContext(TRUE);<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetShowDockingContextStickers(TRUE);<br><br>&nbsp;&nbsp;&nbsp; m_componentGraph.Create(WS_CHILD|WS_CLIPCHILDREN|WS_VISIBLE,rc,this,AFX_IDW_PANE_FIRST);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br>&lt;/code&gt;<br><br>Its almost like the codejock function is not looking at the correct module instance to extract the resources from. I've also tried to load the menu my self which seems to work but it still fails to attach to the commandbar. Any help would be appreciated. CComponentEditorDialog is a CXTPFrameWnd.<br><br>regards<br>Jm<br>]]>
   </description>
   <pubDate>Tue, 25 Aug 2009 03:41:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15040&amp;PID=52353&amp;title=dll-embeded-framewnd-wont-load-menu-bar#52353</guid>
  </item> 
 </channel>
</rss>