<?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 : Inserting into CXTPMDIFrameWnd hosted menu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Inserting into CXTPMDIFrameWnd hosted menu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 13:31:11 +0000</pubDate>
  <lastBuildDate>Sat, 02 Jun 2007 12:18:30 +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=7269</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[Inserting into CXTPMDIFrameWnd hosted menu : Thanks Oleg. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23388&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23388</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1198">beatle</a><br /><strong>Subject:</strong> 7269<br /><strong>Posted:</strong> 02 June 2007 at 12:18pm<br /><br />Thanks Oleg.]]>
   </description>
   <pubDate>Sat, 02 Jun 2007 12:18:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23388&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23388</guid>
  </item> 
  <item>
   <title><![CDATA[Inserting into CXTPMDIFrameWnd hosted menu : xtpControlPopup will add popup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23381&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23381</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7269<br /><strong>Posted:</strong> 02 June 2007 at 3:43am<br /><br /><strong>xtpControlPopup</strong>&nbsp; will add popup button with submenu.<DIV>now you can add buttons to this submenu.</DIV><DIV>&nbsp;</DIV>CXTPControlPopup* pPopup = (CXTPControlPopup*)pMenuBar-&gt;GetControls()-&gt;Add(<strong>xtpControlPopup</strong> , ID); <DIV>pPopup-&gt;GetCommandBar()-&gt;GetControls()-&gt;Add(...);</DIV>]]>
   </description>
   <pubDate>Sat, 02 Jun 2007 03:43:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23381&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23381</guid>
  </item> 
  <item>
   <title><![CDATA[Inserting into CXTPMDIFrameWnd hosted menu :   oleg wrote: pMenuBar-&amp;gt;G...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23380&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23380</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1198">beatle</a><br /><strong>Subject:</strong> 7269<br /><strong>Posted:</strong> 01 June 2007 at 10:53pm<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 /><DIV>pMenuBar-&gt;GetControls()-&gt;Add(<strong>xtpControlPopup</strong> , ID); for Popup menu.</DIV><DIV>&nbsp;</DIV><DIV>Please check our samples first - they will help you figure out how commandars work.</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Of course I have looked at the samples.</DIV><DIV>&nbsp;</DIV><DIV>I asked how to insert a menu and you told me how&nbsp;to add button. I'm just looking for a little help.</DIV>]]>
   </description>
   <pubDate>Fri, 01 Jun 2007 22:53:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23380&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23380</guid>
  </item> 
  <item>
   <title><![CDATA[Inserting into CXTPMDIFrameWnd hosted menu : pMenuBar-&amp;gt;GetControls()-&amp;gt;Add(xtpControlPopup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23353&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23353</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7269<br /><strong>Posted:</strong> 01 June 2007 at 7:29am<br /><br /><DIV>pMenuBar-&gt;GetControls()-&gt;Add(<strong>xtpControlPopup</strong> , ID); for Popup menu.</DIV><DIV>&nbsp;</DIV><DIV>Please check our samples first - they will help you figure out how commandars work.</DIV>]]>
   </description>
   <pubDate>Fri, 01 Jun 2007 07:29:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23353&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23353</guid>
  </item> 
  <item>
   <title><![CDATA[Inserting into CXTPMDIFrameWnd hosted menu :   oleg wrote:Hello,   You need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23341&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23341</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1198">beatle</a><br /><strong>Subject:</strong> 7269<br /><strong>Posted:</strong> 31 May 2007 at 10:09am<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 />Hello, <DIV>&nbsp;</DIV><DIV>You need convert your old code to new. Something like:</DIV><DIV>&nbsp;</DIV><DIV>pMenuBar-&gt;GetControls()-&gt;Add(xtpControlButton, ID);</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Oleg,</DIV><DIV>&nbsp;</DIV><DIV>Please elucidate, your answer really doesn't help me very much. I need to insert a menu item not add a button. </DIV><DIV>&nbsp;</DIV><DIV>Thanks.</DIV>]]>
   </description>
   <pubDate>Thu, 31 May 2007 10:09:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23341&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23341</guid>
  </item> 
  <item>
   <title><![CDATA[Inserting into CXTPMDIFrameWnd hosted menu : Hello,  You need convert your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23318&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23318</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7269<br /><strong>Posted:</strong> 31 May 2007 at 12:42am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>You need convert your old code to new. Something like:</DIV><DIV>&nbsp;</DIV><DIV>pMenuBar-&gt;GetControls()-&gt;Add(xtpControlButton, ID);</DIV>]]>
   </description>
   <pubDate>Thu, 31 May 2007 00:42:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23318&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23318</guid>
  </item> 
  <item>
   <title><![CDATA[Inserting into CXTPMDIFrameWnd hosted menu : I am converting an MFC application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23316&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23316</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1198">beatle</a><br /><strong>Subject:</strong> 7269<br /><strong>Posted:</strong> 30 May 2007 at 6:57pm<br /><br />I am converting an MFC application to use Codejock's ribbon bars. The application dynamically adds menu items at startup as it loads plug-ins. Out old code would store away the MainFrame's CMenu* on startup and then call <FONT color=#010001 size=2>pMenu</FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2>InsertMenu to insert items.<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>With a CXTPMDIFrameWnd derived frame window I have a problem, GetMenu() no longer returns the Window's menu so I have to dig a little deeper:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT color=#010001 size=2>CXTPCommandBars</FONT><FONT size=2>* </FONT><FONT color=#010001 size=2>pCommandBars</FONT><FONT size=2>=</FONT><FONT color=#010001 size=2>CGatanApp</FONT><FONT size=2>::</FONT><FONT color=#010001 size=2>GetGatanMainFrame</FONT><FONT size=2>()-&gt;</FONT><FONT color=#010001 size=2>GetCommandBars</FONT><FONT size=2>();</P><DIV></FONT><FONT color=#010001 size=2>_ASSERTE</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>pCommandBars</FONT><FONT size=2>);</DIV><P></FONT><FONT color=#010001 size=2>CXTPMenuBar</FONT><FONT size=2>* </FONT><FONT color=#010001 size=2>pMenuBar</FONT><FONT size=2>=</FONT><FONT color=#010001 size=2>pCommandBars</FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2>GetMenuBar</FONT><FONT size=2>();</P><DIV></FONT><FONT color=#010001 size=2>_ASSERTE</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>pMenuBar</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>At this point I'm stuck. Can I somehow extract a CMenu from CXTPMenuBar? It doesn't look like it. How do I insert a menu into the existing menu?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thanks.</DIV></FONT></DIV></FONT>]]>
   </description>
   <pubDate>Wed, 30 May 2007 18:57:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7269&amp;PID=23316&amp;title=inserting-into-cxtpmdiframewnd-hosted-menu#23316</guid>
  </item> 
 </channel>
</rss>