<?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 : Hierarchical menu: How?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Hierarchical menu: How?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 20:36:25 +0000</pubDate>
  <lastBuildDate>Mon, 13 Oct 2008 06:19:21 +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=12400</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[Hierarchical menu: How? : Hi, You can&amp;#039;t add again...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12400&amp;PID=41935&amp;title=hierarchical-menu-how#41935</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12400<br /><strong>Posted:</strong> 13 October 2008 at 6:19am<br /><br />Hi,<DIV>You can't add again already added menu. Have to remove it first or Copy (see Copy method).</DIV>]]>
   </description>
   <pubDate>Mon, 13 Oct 2008 06:19:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12400&amp;PID=41935&amp;title=hierarchical-menu-how#41935</guid>
  </item> 
  <item>
   <title><![CDATA[Hierarchical menu: How? :   C++:I create a menu: ICommandBarPopupPtr...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12400&amp;PID=41885&amp;title=hierarchical-menu-how#41885</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4382">Number8</a><br /><strong>Subject:</strong> 12400<br /><strong>Posted:</strong> 10 October 2008 at 4:36pm<br /><br />C++:<br>I create a menu:<br>&nbsp;&nbsp;&nbsp; ICommandBarPopupPtr pPopupMenu = 0;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pPopupMenu = m_pCmdBar-&gt;ActiveMenuBar-&gt;GetControls()-&gt;Add(xtpControlPopup, 0, _bstr_t("<b>TEST</b>"), -1, false);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pPopupMenu-&gt;PutId(<b>32000</b>);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pPopupMenuControls = pPopupMenu-&gt;GetCommandBar()-&gt;GetControls();<br><br>Add a menu item:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pAction = pActions-&gt;Add(101, _bstr_t("New"), _bstr_t(""), _bstr_t(""), _bstr_t("TEST));<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl = pPopupMenuControls-&gt;Add(xtpControlButton,&nbsp; 101, "");<br><br>I create another menu (as above), and want to add this first menu to it.&nbsp; I iterate over the CommandBar controls to find the control with this menuname/menuid (TEST/32000), and try to add it to the new menu:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; assert(xtpControlPopup == pCtrl-&gt;GetType());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OutputDebugString(pCtrl-&gt;GetCaption()); OutputDebugString("\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // This looks like the control -- popupMenu -- that I am looking for....<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; pPopupMenuControls-&gt;AddControl(pCtrl);<br><br>Unfortunately, the TEST menu does not appear on the second menu I create.<br>What am I doing wrong?<br>TIA for any advice...<br><br><br>]]>
   </description>
   <pubDate>Fri, 10 Oct 2008 16:36:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12400&amp;PID=41885&amp;title=hierarchical-menu-how#41885</guid>
  </item> 
 </channel>
</rss>