<?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 : How 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 : Toolkit Pro : How to remove a sub-menu item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 04:54:17 +0000</pubDate>
  <lastBuildDate>Mon, 23 May 2005 12:24:10 +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=2269</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[How to remove a sub-menu item : The following code will remove...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2269&amp;PID=6727&amp;title=how-to-remove-a-submenu-item#6727</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=133">thodgson</a><br /><strong>Subject:</strong> 2269<br /><strong>Posted:</strong> 23 May 2005 at 12:24pm<br /><br /><P>The following code will remove a command that is just below a top level menu, e.g. File -&gt; Open, however if you try and remove one level below that, an ASSERT is thrown.</P><P>How do I remove a menu item (control) that is 2 levels down, e.g. File -&gt; Open -&gt; Something?</P><FONT color=#880000><P>OnInitCommandsPopup</FONT>(<FONT color=#0000ff>CXTPCommandBar</FONT>* <FONT color=#808080>pCommandBar</FONT>)<BR>{<BR><FONT color=#0000ff>&nbsp;&nbsp; CXTPControl</FONT>* <FONT color=#808080>pCommandSubItem</FONT> = <FONT color=#808080>pCommandList</FONT>-&gt;<FONT color=#880000>FindControl</FONT>(xtpControlButton, <FONT color=#a000a0>ID_TOOLS_SUBITEM</FONT>, <FONT color=#a000a0>TRUE</FONT>, <FONT color=#a000a0>TRUE</FONT>);<BR><FONT color=#0000ff>&nbsp;&nbsp; if</FONT> (<FONT color=#808080>pCommandSubItem</FONT>)<BR>&nbsp;&nbsp; {<BR><FONT color=#808080>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pCommandList</FONT>-&gt;<FONT color=#880000>Remove</FONT>(<FONT color=#808080>pCommandSubItem</FONT>);<BR>&nbsp;&nbsp; }<BR>}</P><span style="font-size:10px"><br /><br />Edited by thodgson</span>]]>
   </description>
   <pubDate>Mon, 23 May 2005 12:24:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2269&amp;PID=6727&amp;title=how-to-remove-a-submenu-item#6727</guid>
  </item> 
 </channel>
</rss>