<?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 : Disabling menu items</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Disabling menu items]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 05:06:51 +0000</pubDate>
  <lastBuildDate>Wed, 02 May 2007 02:17:47 +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=7001</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[Disabling menu items : Well, i need to disable the menu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7001&amp;PID=22485&amp;title=disabling-menu-items#22485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2929">Damsku</a><br /><strong>Subject:</strong> 7001<br /><strong>Posted:</strong> 02 May 2007 at 2:17am<br /><br />Well, i need to disable the menu when i click on a toolbar button so that would work like that. If i got msdn right...]]>
   </description>
   <pubDate>Wed, 02 May 2007 02:17:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7001&amp;PID=22485&amp;title=disabling-menu-items#22485</guid>
  </item> 
  <item>
   <title><![CDATA[Disabling menu items : Hello,  Use update handlers...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7001&amp;PID=22445&amp;title=disabling-menu-items#22445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7001<br /><strong>Posted:</strong> 30 April 2007 at 4:05am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Use update handlers to enable/disable items. </DIV><DIV>see ON_UPDATE_COMMAND_UI in MSDN.</DIV>]]>
   </description>
   <pubDate>Mon, 30 Apr 2007 04:05:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7001&amp;PID=22445&amp;title=disabling-menu-items#22445</guid>
  </item> 
  <item>
   <title><![CDATA[Disabling menu items : Hi,I have an action i shouldn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7001&amp;PID=22404&amp;title=disabling-menu-items#22404</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2929">Damsku</a><br /><strong>Subject:</strong> 7001<br /><strong>Posted:</strong> 27 April 2007 at 6:57am<br /><br />Hi,<br><br>I have an action i shouldn't be running when it's running already, and i want to gray an item in the menu after selecting it.<br>I do set the menu this way:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (GetCommandBars()-&gt;SetMenu(_T("Menu Bar"), IDR_MAINFRAME) == NULL) return -1;<br><br>I tried GetCommandBars()-&gt;GetMenuBar()-&gt;GetMenu() to access the CMenu and operate with the items, but GetMenu returns null...<br>GetCommandBars()-&gt;GetMenuBar()-&gt;GetControl(index) it disables the submenu but i can't find a way to access items in the submenu from there...<br>What is the proper way to remotely enable/disable a menu?<br>Thanks in advance<br><br>]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 06:57:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7001&amp;PID=22404&amp;title=disabling-menu-items#22404</guid>
  </item> 
 </channel>
</rss>