<?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 : Get main menu fail</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Get main menu fail]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 05:29:39 +0000</pubDate>
  <lastBuildDate>Sun, 14 Nov 2004 12:59: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=1231</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[Get main menu fail :   This is very useful, I just...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1231&amp;PID=3991&amp;title=get-main-menu-fail#3991</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 1231<br /><strong>Posted:</strong> 14 November 2004 at 12:59pm<br /><br /><br>This is very useful, I just spent a while searching for this, and thisis what I was looking for. In order to change menu items, instead ofusing ON_WM_INITMENUPOPUP, you use ON_XTP_INITCOMMANDSPOPUP() whichwill call a function like voidCMainFrame::OnInitCommandsPopup(CXTPPopupBar* pCommandBar)<br>And I think you can then call pCommandBar-&gt;GetControlPopup()-&gt;GetID() and alter the bar if you want from there.<br>The Notifications is a good resource to look at here.<br><br><span style="font-size:10px"><br /><br />Edited by Ark42</span>]]>
   </description>
   <pubDate>Sun, 14 Nov 2004 12:59:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1231&amp;PID=3991&amp;title=get-main-menu-fail#3991</guid>
  </item> 
  <item>
   <title><![CDATA[Get main menu fail : pMenuBar-&amp;gt;GetControl(0)-&amp;gt...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1231&amp;PID=3337&amp;title=get-main-menu-fail#3337</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1231<br /><strong>Posted:</strong> 05 October 2004 at 1:08am<br /><br /><P> pMenuBar-&gt;GetControl(0)-&gt;GetCommandBar()-&gt;GetContro l(9)-&gt;SetCaption("Print1");</P><P>or pCommandBars-&gt;FindControl(..)-&gt;SetCaption("Print1");</P><P>but better catch INITCOMMANDSPOPUP notifiaction and change caption before popup become visible. See Notifications&nbsp; sample.</P>]]>
   </description>
   <pubDate>Tue, 05 Oct 2004 01:08:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1231&amp;PID=3337&amp;title=get-main-menu-fail#3337</guid>
  </item> 
  <item>
   <title><![CDATA[Get main menu fail :   oleg wrote: Xtreme CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1231&amp;PID=3334&amp;title=get-main-menu-fail#3334</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=744">amhigh</a><br /><strong>Subject:</strong> 1231<br /><strong>Posted:</strong> 04 October 2004 at 8:51pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><P>Xtreme CommandBars don't use CMenu. you must change all code for CommandBars api:</P><P>pMainFrame-&gt;GetCommandBars()-&gt;GetMenuBar();</P><P>to add button:</P><P>pMenuBar-&gt;GetControls()-&gt;Add(..)</P><P>access:</P><P>pMenuBar-&gt;GetControls()-&gt;GetAt(i)</P><P>remove:</P><P>pMenuBar-&gt;GetControls()-&gt;Remove(i)</P><P>&nbsp;</P><P>Please, _learn_ all samples we provided.</P><P></td></tr></table> </P><P>Thanks for point this out.&nbsp; I appreciate. </P><P>After get the menubar, how can I obtain the information of the menu bar?&nbsp; For example, I used to get th "Caption" of the menubar and be able to chagne it (say, Change the caption of &nbsp;"Print ..."&nbsp;under the&nbsp;"File" menu to the caption of&nbsp;my own language) with the MFC, now after integrate with Codejock, after I get the menubar, how can I do the same thing as I did it before?&nbsp; Can you please provide me some hints or any examples?&nbsp; </P><P>&nbsp;Thanks for your help. </P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 04 Oct 2004 20:51:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1231&amp;PID=3334&amp;title=get-main-menu-fail#3334</guid>
  </item> 
  <item>
   <title><![CDATA[Get main menu fail : Xtreme CommandBars don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1231&amp;PID=3329&amp;title=get-main-menu-fail#3329</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1231<br /><strong>Posted:</strong> 04 October 2004 at 12:02pm<br /><br /><P>Xtreme CommandBars don't use CMenu. you must change all code for CommandBars api:</P><P>pMainFrame-&gt;GetCommandBars()-&gt;GetMenuBar();</P><P>to add button:</P><P>pMenuBar-&gt;GetControls()-&gt;Add(..)</P><P>access:</P><P>pMenuBar-&gt;GetControls()-&gt;GetAt(i)</P><P>remove:</P><P>pMenuBar-&gt;GetControls()-&gt;Remove(i)</P><P>&nbsp;</P><P>Please, _learn_ all samples we provided.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 04 Oct 2004 12:02:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1231&amp;PID=3329&amp;title=get-main-menu-fail#3329</guid>
  </item> 
  <item>
   <title><![CDATA[Get main menu fail : Dear Codejock experts: I use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1231&amp;PID=3316&amp;title=get-main-menu-fail#3316</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=744">amhigh</a><br /><strong>Subject:</strong> 1231<br /><strong>Posted:</strong> 04 October 2004 at 3:40am<br /><br /><P>Dear Codejock experts:</P><P>I use the Visual C++ 6.0 to develop my own application,<BR>and in my application, we use the "CMenu* MainMenu = AfxGetMainWnd()-&gt;GetMenu();"<BR>to get the main menu information.&nbsp; However, after integrate with codejock, the <BR>application halts whenever it hits "CMenu* MainMenu = AfxGetMainWnd()-&gt;GetMenu();", <BR>my question:&nbsp; how can I fix this problem after integrate with Codejock?<BR>or how can I get the main menu so that we can know the main menu information<BR>(such that we can change the caption of the main menu, and know whether it is a separtor, <BR>or it is a popup menu (if it is a popup menu, how can I get the caption in the submenu,) <BR>... etc), </P><P>Thanks for any help. </P><P>Best Regards.</P><P><BR>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 04 Oct 2004 03:40:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1231&amp;PID=3316&amp;title=get-main-menu-fail#3316</guid>
  </item> 
 </channel>
</rss>