<?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 : how to replace CMainFrame-&gt;GetMenu() in codejock</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : how to replace CMainFrame-&gt;GetMenu() in codejock]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 17:38:27 +0000</pubDate>
  <lastBuildDate>Tue, 18 Sep 2007 01:55:48 +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=8053</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[how to replace CMainFrame-&gt;GetMenu() in codejock : Hello, Afraid you need rewrite...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8053&amp;PID=26061&amp;title=how-to-replace-cmainframegetmenu-in-codejock#26061</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8053<br /><strong>Posted:</strong> 18 September 2007 at 1:55am<br /><br />Hello,<DIV>Afraid you need rewrite it :(</DIV><DIV>&nbsp;</DIV><DIV>Instead CMainFrame-&gt;GetMenu use</DIV><DIV>GetCommandBar()-&gt;GetMenuBar()</DIV><DIV>&nbsp;</DIV><DIV>and use CXTPControls/ CXTPControl methods to add/remove/modify items.</DIV>]]>
   </description>
   <pubDate>Tue, 18 Sep 2007 01:55:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8053&amp;PID=26061&amp;title=how-to-replace-cmainframegetmenu-in-codejock#26061</guid>
  </item> 
  <item>
   <title><![CDATA[how to replace CMainFrame-&gt;GetMenu() in codejock : Hi,  I am using codejock to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8053&amp;PID=26051&amp;title=how-to-replace-cmainframegetmenu-in-codejock#26051</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3310">Pearl</a><br /><strong>Subject:</strong> 8053<br /><strong>Posted:</strong> 17 September 2007 at 6:33pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I am using codejock to reskin the old MFC 6.0 application. Since codekock doesn't support application menu (the menu is hide in title bar), ao I create the menu bar by following the sample code.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;if (!InitCommandBars())<BR>&nbsp; &nbsp;return -1;</DIV><DIV>&nbsp;</DIV><DIV>// Get a pointer to the command bars object.<BR>&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<BR>&nbsp;</DIV><DIV>&nbsp;if(pCommandBars == NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create command bars object.\n");<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;}</DIV><DIV>&nbsp;&nbsp;&nbsp;// create the menubar.<BR>&nbsp;pMenuBar = pCommandBars-&gt;SetMenu(_T("Menu Bar"), IDR_MAINFRAME);<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; if(pMenuBar == NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create menu bar.\n");<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create</DIV><DIV>&nbsp; }</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;However, if I create the menu like this way, I am not able to CMainFrame-&gt;GetMenu(), the pointer is null. I have lots of code of getting main menu by this way , and corresponding methods (llike CheckMenuItem). How can I change the code to let them working?</DIV>]]>
   </description>
   <pubDate>Mon, 17 Sep 2007 18:33:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8053&amp;PID=26051&amp;title=how-to-replace-cmainframegetmenu-in-codejock#26051</guid>
  </item> 
 </channel>
</rss>