<?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 : [SOLVED] HOWTO: Hide context menu items by actions</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : [SOLVED] HOWTO: Hide context menu items by actions]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 18:07:44 +0000</pubDate>
  <lastBuildDate>Fri, 16 Jan 2009 03:19:02 +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=13160</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[[SOLVED] HOWTO: Hide context menu items by actions : That&amp;#039;s exactly what I want!Thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44641&amp;title=solved-howto-hide-context-menu-items-by-actions#44641</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 13160<br /><strong>Posted:</strong> 16 January 2009 at 3:19am<br /><br />That's exactly what I want!<br><br>Thanks<br>]]>
   </description>
   <pubDate>Fri, 16 Jan 2009 03:19:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44641&amp;title=solved-howto-hide-context-menu-items-by-actions#44641</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Hide context menu items by actions : Hi, User can&amp;#039;t switch it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44638&amp;title=solved-howto-hide-context-menu-items-by-actions#44638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13160<br /><strong>Posted:</strong> 16 January 2009 at 2:25am<br /><br />Hi,<DIV>User can't switch it back in customization dialog. You have show them in code.</DIV>]]>
   </description>
   <pubDate>Fri, 16 Jan 2009 02:25:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44638&amp;title=solved-howto-hide-context-menu-items-by-actions#44638</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Hide context menu items by actions : Thanks Oleg! I already didn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44626&amp;title=solved-howto-hide-context-menu-items-by-actions#44626</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 13160<br /><strong>Posted:</strong> 15 January 2009 at 6:32pm<br /><br />Thanks Oleg! <img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle"><br><br>I already didn't call the static version of TrackPopupMenu but I forgot to provide the CommandBars object.<br>After changing all calls to TrackPopupMenuEx() it works as expected.<br><br>One last question:<br><br>I didn't implement commandbars customization yet, so I have to ask whether hidden actions can be switched back visible or not. The latter is preferred in my case!<br>]]>
   </description>
   <pubDate>Thu, 15 Jan 2009 18:32:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44626&amp;title=solved-howto-hide-context-menu-items-by-actions#44626</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Hide context menu items by actions : Hello,   Check if you call non...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44597&amp;title=solved-howto-hide-context-menu-items-by-actions#44597</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13160<br /><strong>Posted:</strong> 15 January 2009 at 7:07am<br /><br />Hello, <DIV>&nbsp;</DIV><DIV>Check if you call non static version of CommandBars::TrackPopupMenu.</DIV><DIV>&nbsp;</DIV><DIV>try call TrackPopupMenuEx instead.</DIV>]]>
   </description>
   <pubDate>Thu, 15 Jan 2009 07:07:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44597&amp;title=solved-howto-hide-context-menu-items-by-actions#44597</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Hide context menu items by actions : Hi;No idea? No one who had the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44595&amp;title=solved-howto-hide-context-menu-items-by-actions#44595</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 13160<br /><strong>Posted:</strong> 15 January 2009 at 6:57am<br /><br />Hi;<br>No idea? No one who had the same problem???<img src="http://forum.codejock.com/smileys/smiley6.gif" border="0" align="absmiddle"><br>]]>
   </description>
   <pubDate>Thu, 15 Jan 2009 06:57:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44595&amp;title=solved-howto-hide-context-menu-items-by-actions#44595</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] HOWTO: Hide context menu items by actions : Hi;I try to hide context menu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44512&amp;title=solved-howto-hide-context-menu-items-by-actions#44512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 13160<br /><strong>Posted:</strong> 13 January 2009 at 11:11am<br /><br />Hi;<br><br>I try to hide context menu items by commandbar actions but with no success.<br>I created a context menu in resource that has no according menu item in the main menu of the application. On right click inside the destination control I call AfxGetMainWnd()-&gt;GetCommandBars()-&gt;TrackPopupMenu(..., this)<br><br>On initialization of the main window I add all IDs of the menu items to be hidden later (regardless whether they are contained in the main menu or not) by calling GetCommandBars()-&gt;GetActions()-&gt;Add(ID).<br><br>When the context menu pops up all items are still visible.<br>I looked at the ActionsSample but this does not use TrackPopupMenu...<img src="http://1.2.3.11/bmi/forum.codejock.com/smileys/smiley19.gif" border="0" align="absmiddle"><br><br>What do I have to do? Any ideas.<br>]]>
   </description>
   <pubDate>Tue, 13 Jan 2009 11:11:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13160&amp;PID=44512&amp;title=solved-howto-hide-context-menu-items-by-actions#44512</guid>
  </item> 
 </channel>
</rss>