<?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 : LoadCommandBars problem if Ribbon and Menu present</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : LoadCommandBars problem if Ribbon and Menu present]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 10:45:55 +0000</pubDate>
  <lastBuildDate>Mon, 05 Feb 2007 03:16:19 +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=6313</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[LoadCommandBars problem if Ribbon and Menu present : Excellent! That works a treat.      Many...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6313&amp;PID=20073&amp;title=loadcommandbars-problem-if-ribbon-and-menu-present#20073</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2426">robin_l</a><br /><strong>Subject:</strong> 6313<br /><strong>Posted:</strong> 05 February 2007 at 3:16am<br /><br />Excellent! That works a treat.<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Many thanks.</DIV>]]>
   </description>
   <pubDate>Mon, 05 Feb 2007 03:16:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6313&amp;PID=20073&amp;title=loadcommandbars-problem-if-ribbon-and-menu-present#20073</guid>
  </item> 
  <item>
   <title><![CDATA[LoadCommandBars problem if Ribbon and Menu present : Hi, try to set another id for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6313&amp;PID=20068&amp;title=loadcommandbars-problem-if-ribbon-and-menu-present#20068</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6313<br /><strong>Posted:</strong> 05 February 2007 at 1:37am<br /><br /><P>Hi,</P><DIV>try to set another id for menu bar:</DIV><DIV>pMenuBar-&gt;SetBarID(2);</DIV>]]>
   </description>
   <pubDate>Mon, 05 Feb 2007 01:37:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6313&amp;PID=20068&amp;title=loadcommandbars-problem-if-ribbon-and-menu-present#20068</guid>
  </item> 
  <item>
   <title><![CDATA[LoadCommandBars problem if Ribbon and Menu present : I&amp;#039;m incorporating a ribbon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6313&amp;PID=20052&amp;title=loadcommandbars-problem-if-ribbon-and-menu-present#20052</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2426">robin_l</a><br /><strong>Subject:</strong> 6313<br /><strong>Posted:</strong> 04 February 2007 at 10:35am<br /><br />I'm incorporating a ribbon into an existing app, so want to give users the option of having the "old" look (menus plus toolbars) or the "new" one (ribbon). For this reason, I want to load menus, toolbars AND a ribbon and let users turn off whatever they don't want to see. Although this largely works, there is a redraw problem when both ribbon and menu are present together, which appears after SaveCommandBars/<FONT size=2>LoadCommandBars restores the screen layout. This effect is present in versions 10.4.0 and 10.4.2.<DIV></DIV><DIV>&nbsp;</DIV><DIV>To show this I've taken the RibbonMDISample, added a menu bar:</DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV><FONT face="Courier New, Courier, mono">CXTPMenuBar* pMenuBar = pCommandBars-&gt;SetMenu(_T("Menu Bar"), IDR_MAINFRAME);</FONT><FONT size=2></DIV></BLOCKQUOTE><DIV></DIV><P>plus an OnClose handler to save the command bar state</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV><FONT face="Courier New, Courier, mono">void CMainFrame::OnClose()<BR>{<BR>&nbsp;&nbsp;&nbsp; SaveCommandBars(_T("CommandBars"));<BR>&nbsp;&nbsp;&nbsp; CXTPMDIFrameWnd::OnClose();<BR>}</FONT></DIV></BLOCKQUOTE><DIV><DIV></DIV><FONT size=2><FONT color=#0000ff size=2></FONT><FONT size=2><FONT face="Courier New, Courier, mono"></FONT></DIV><DIV></DIV><DIV>The first time the program runs, the expected appearance is found:</DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20070204_102057_MDIRibb&#111;nMenu1.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>However, after re-running the program, at which point LoadCommandBars attempts to restore the appearance, what we get is the following, where the menu bar is positioned at the very top of the window:</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20070204_102124_MDIRibb&#111;nMenu2.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Any chance of correcting this? The sample project showing the bug is here: <a href="https://forum.codejock.com/uploads/20070204_102933_Bug_in_LoadComm.zip" target="_blank">uploads/20070204_102933_Bug_in_LoadComm.zip</A></DIV></FONT></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Sun, 04 Feb 2007 10:35:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6313&amp;PID=20052&amp;title=loadcommandbars-problem-if-ribbon-and-menu-present#20052</guid>
  </item> 
 </channel>
</rss>