<?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 : Need to remove a sub-menu item</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Need to remove a sub-menu item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:08:59 +0000</pubDate>
  <lastBuildDate>Fri, 02 May 2008 19:32: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=10464</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[Need to remove a sub-menu item : How do I delete a sub-menu item?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10464&amp;PID=34589&amp;title=need-to-remove-a-submenu-item#34589</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4092">71SoCal</a><br /><strong>Subject:</strong> 10464<br /><strong>Posted:</strong> 02 May 2008 at 7:32pm<br /><br />How do I delete a sub-menu item? <DIV>&nbsp;</DIV><DIV>I'm talking about a sub-menu item from a standard dropdown menu (menu item cascades to&nbsp;the right-side with an&nbsp;arrow indicating a sub-menu).</DIV><DIV>&nbsp;</DIV><DIV>Once I've got the CXTPControl* object for the menu item, if I do the following code, it blows up:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>// Get the control object from the menu item</DIV><DIV><FONT size=2><DIV>CXTPControl* pControl = pControls-&gt;GetAt(nIndex);</DIV><DIV>if (pControl)</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp; // Trying here to get the sub-menu controls...</DIV><DIV></FONT><FONT size=2>&nbsp;&nbsp; CXTPControls* pSubMenuControls = </FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp; pControl-&gt;GetCommandBar()-&gt;GetControls();&nbsp; // Blows up!!!</FONT></DIV><DIV><FONT size=2>}</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>My plan was to get the pSubMenuControls object, then call:</FONT></DIV><DIV><FONT size=2><FONT size=2>CXTPControl* pSubControl = pSubControls-&gt;FindControl(nID);</FONT></FONT></DIV><DIV><FONT size=2><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pSubControl)</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>{</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>&nbsp;&nbsp; pSubControls-&gt;Remove(pSubControl);</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2>}</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT size=2>Thanks for any help on this one!</FONT></FONT></DIV><DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT size=2>Mike</DIV></FONT></FONT></DIV><!-- Message  ''"" */ //--><BR>]]>
   </description>
   <pubDate>Fri, 02 May 2008 19:32:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10464&amp;PID=34589&amp;title=need-to-remove-a-submenu-item#34589</guid>
  </item> 
 </channel>
</rss>