<?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 : Remove C&#111;ntrol &#111;n Menu (2 levels deep)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Remove C&#111;ntrol &#111;n Menu (2 levels deep)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 19:38:10 +0000</pubDate>
  <lastBuildDate>Tue, 17 Jan 2006 10:10:29 +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=3050</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[Remove C&#111;ntrol &#111;n Menu (2 levels deep) : I need to remove sub menu item...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3050&amp;PID=10563&amp;title=remove-control-on-menu-2-levels-deep#10563</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1519">mailhaim</a><br /><strong>Subject:</strong> 3050<br /><strong>Posted:</strong> 17 January 2006 at 10:10am<br /><br /><P>I need to remove sub menu item too but the above suggestion does not work( <FONT color=#808080>pCommandSub<SPAN =highlight>Item</SPAN>-&gt;GetControls()</FONT>-&gt;<FONT color=#880000><SPAN =highlight>Remove</SPAN></FONT>(<FONT color=#808080>pCommandSub<SPAN =highlight>Item</SPAN></FONT>); )</P><P>An example: I have sub menu with 3 items: A, B &amp; C. I try to remove C. When I open the menu I get A, B, B.</P><P>Any ideas?</P>]]>
   </description>
   <pubDate>Tue, 17 Jan 2006 10:10:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3050&amp;PID=10563&amp;title=remove-control-on-menu-2-levels-deep#10563</guid>
  </item> 
  <item>
   <title><![CDATA[Remove C&#111;ntrol &#111;n Menu (2 levels deep) : Okay, that seems odd to use the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3050&amp;PID=9152&amp;title=remove-control-on-menu-2-levels-deep#9152</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=133">thodgson</a><br /><strong>Subject:</strong> 3050<br /><strong>Posted:</strong> 19 October 2005 at 7:08pm<br /><br /><P>Okay, that seems odd to use the object to remove itself, but...you guys wrote it and it works.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 19 Oct 2005 19:08:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3050&amp;PID=9152&amp;title=remove-control-on-menu-2-levels-deep#9152</guid>
  </item> 
  <item>
   <title><![CDATA[Remove C&#111;ntrol &#111;n Menu (2 levels deep) : instead  pCommandList-&amp;gt;Rem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3050&amp;PID=9086&amp;title=remove-control-on-menu-2-levels-deep#9086</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3050<br /><strong>Posted:</strong> 17 October 2005 at 3:00pm<br /><br /><P>instead </P><P><FONT color=#808080>pCommandList</FONT>-&gt;<FONT color=#880000>Remove</FONT>(<FONT color=#808080>pCommandSubItem</FONT>);<BR></P><P>use</P><P><FONT color=#808080>pCommandSubItem-&gt;GetControls()</FONT>-&gt;<FONT color=#880000>Remove</FONT>(<FONT color=#808080>pCommandSubItem</FONT>);<BR></P>]]>
   </description>
   <pubDate>Mon, 17 Oct 2005 15:00:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3050&amp;PID=9086&amp;title=remove-control-on-menu-2-levels-deep#9086</guid>
  </item> 
  <item>
   <title><![CDATA[Remove C&#111;ntrol &#111;n Menu (2 levels deep) : FYI: the parameter &amp;#034;visible&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3050&amp;PID=9085&amp;title=remove-control-on-menu-2-levels-deep#9085</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=133">thodgson</a><br /><strong>Subject:</strong> 3050<br /><strong>Posted:</strong> 17 October 2005 at 1:15pm<br /><br /><P>FYI: the parameter "visible" in the call to FindControl must be set to FALSE</P><P><FONT color=#0000ff>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>FALSE</FONT>);</P>]]>
   </description>
   <pubDate>Mon, 17 Oct 2005 13:15:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3050&amp;PID=9085&amp;title=remove-control-on-menu-2-levels-deep#9085</guid>
  </item> 
  <item>
   <title><![CDATA[Remove C&#111;ntrol &#111;n Menu (2 levels deep) : The following code will remove...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3050&amp;PID=9084&amp;title=remove-control-on-menu-2-levels-deep#9084</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=133">thodgson</a><br /><strong>Subject:</strong> 3050<br /><strong>Posted:</strong> 17 October 2005 at 1:11pm<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><P>&nbsp;</P><P>Does not work for all controls...</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>]]>
   </description>
   <pubDate>Mon, 17 Oct 2005 13:11:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3050&amp;PID=9084&amp;title=remove-control-on-menu-2-levels-deep#9084</guid>
  </item> 
 </channel>
</rss>