<?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 : CXTPMenuBar - need pointer to CMenu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPMenuBar - need pointer to CMenu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 17:16:44 +0000</pubDate>
  <lastBuildDate>Fri, 24 Jul 2009 03:28:56 +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=14667</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[CXTPMenuBar - need pointer to CMenu : Hi, See CXTPControls methods...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=51241&amp;title=cxtpmenubar-need-pointer-to-cmenu#51241</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14667<br /><strong>Posted:</strong> 24 July 2009 at 3:28am<br /><br /><P>Hi,</P><DIV>See CXTPControls methods - you need "Add" one:</DIV><DIV>&nbsp;</DIV><DIV>pMenuBar-&gt;GetControls()-&gt;Add(xtpControlPopup, ...);</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 24 Jul 2009 03:28:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=51241&amp;title=cxtpmenubar-need-pointer-to-cmenu#51241</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar - need pointer to CMenu : Oleg - your answer leaves a lot...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=51199&amp;title=cxtpmenubar-need-pointer-to-cmenu#51199</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5336">tralfaz</a><br /><strong>Subject:</strong> 14667<br /><strong>Posted:</strong> 23 July 2009 at 1:00am<br /><br />Oleg - your answer leaves a lot to be desired. How am I to create a submenu using GetControl? Seems extremely laborious. Can you elaborate a little?<br><br>]]>
   </description>
   <pubDate>Thu, 23 Jul 2009 01:00:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=51199&amp;title=cxtpmenubar-need-pointer-to-cmenu#51199</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar - need pointer to CMenu : After you converted Menu to CXTPMenuBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=50895&amp;title=cxtpmenubar-need-pointer-to-cmenu#50895</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14667<br /><strong>Posted:</strong> 13 July 2009 at 2:21am<br /><br />After you converted Menu to CXTPMenuBar you have use methods of CXTPControl/CXTPControls to modify/add items:<DIV>&nbsp;</DIV><DIV>pMenuBar-&gt;GetControl(1)-&gt;SetCaption("New Caption");</DIV><DIV>etc.</DIV>]]>
   </description>
   <pubDate>Mon, 13 Jul 2009 02:21:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=50895&amp;title=cxtpmenubar-need-pointer-to-cmenu#50895</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar - need pointer to CMenu : still waiting for support to get...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=50867&amp;title=cxtpmenubar-need-pointer-to-cmenu#50867</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5336">tralfaz</a><br /><strong>Subject:</strong> 14667<br /><strong>Posted:</strong> 10 July 2009 at 3:38pm<br /><br />still waiting for support to get back to me. Is it possible to create a MenuBar from an existing CMenu? Or can I get ahold of a CMenu submenu from a MenuBar?]]>
   </description>
   <pubDate>Fri, 10 Jul 2009 15:38:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=50867&amp;title=cxtpmenubar-need-pointer-to-cmenu#50867</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar - need pointer to CMenu : rd - if you have that call that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=50741&amp;title=cxtpmenubar-need-pointer-to-cmenu#50741</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5336">tralfaz</a><br /><strong>Subject:</strong> 14667<br /><strong>Posted:</strong> 07 July 2009 at 11:59am<br /><br />rd - if you have that call that passes in a CMenu to MenuBar, I'd really appreciate it.]]>
   </description>
   <pubDate>Tue, 07 Jul 2009 11:59:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=50741&amp;title=cxtpmenubar-need-pointer-to-cmenu#50741</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar - need pointer to CMenu : I don&amp;#039;t believe there is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=50585&amp;title=cxtpmenubar-need-pointer-to-cmenu#50585</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 14667<br /><strong>Posted:</strong> 02 July 2009 at 10:21am<br /><br />I don't believe there is a CMenu behind the command bar. You can first use a CMenu to load and manipulate your menu layout and then pass the CMenu to CJ. I do that when building the command ribbon (I might have to get the controls collection and then pass it the menu; I'm not at work so I can't explicitly check on exactly what call I make or whether the call takes in a CMenu or HMENU - CMenu can be cast to HMENU).]]>
   </description>
   <pubDate>Thu, 02 Jul 2009 10:21:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=50585&amp;title=cxtpmenubar-need-pointer-to-cmenu#50585</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar - need pointer to CMenu : Is there a way to get my hands...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=50553&amp;title=cxtpmenubar-need-pointer-to-cmenu#50553</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5336">tralfaz</a><br /><strong>Subject:</strong> 14667<br /><strong>Posted:</strong> 01 July 2009 at 7:40pm<br /><br />Is there a way to get my hands on the CMenu associated with the CXTPMenuBar?<br><br>OnCreate I'm adding the menu bar:<br><br>CXTPMenuBar* pMenuBar = pCommandBars-&gt;SetMenu(_T("Menu"), IDR_MAINFRAME);<br><br>Next I want to modify the Menu and attach custom menu items. If I could get a pointer to a CMenu then I could use my existing routine.<br><br>How do you add menu items after the fact?<br><br>I need something like this:<br><b>&nbsp;&nbsp;&nbsp; <br>CXTPMenuBar* pxMenu = GetCommandBars()-&gt;GetMenuBar();<br>CMenu* pMenu = pxMenu-&gt;GetMenu();</b><br><b>ModifyMenu(pMenu);</b><br><br>or this<br><br><b>CMenu Menu;<br>Menu.LoadMenu(IDR_MAINFRAME);<br>ModifyMenu(&amp;Menu);<br>CXTPMenuBar* pMenuBar = pCommandBars-&gt;SetMenu(&amp;Menu);</b><br><br><br>Thanks,<br>Matt<br>]]>
   </description>
   <pubDate>Wed, 01 Jul 2009 19:40:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14667&amp;PID=50553&amp;title=cxtpmenubar-need-pointer-to-cmenu#50553</guid>
  </item> 
 </channel>
</rss>