<?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 enable menu item &#111;n popup?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to enable menu item &#111;n popup?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 15:43:14 +0000</pubDate>
  <lastBuildDate>Mon, 19 Dec 2005 10:56:49 +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=3039</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 enable menu item &#111;n popup? : ah, yes...I was overlooking that...thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=10260&amp;title=how-to-enable-menu-item-on-popup#10260</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1143">umcbrad</a><br /><strong>Subject:</strong> 3039<br /><strong>Posted:</strong> 19 December 2005 at 10:56am<br /><br />ah, yes...I was overlooking that...thanks for the help!]]>
   </description>
   <pubDate>Mon, 19 Dec 2005 10:56:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=10260&amp;title=how-to-enable-menu-item-on-popup#10260</guid>
  </item> 
  <item>
   <title><![CDATA[How to enable menu item &#111;n popup? : You shall have a command handler...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=10259&amp;title=how-to-enable-menu-item-on-popup#10259</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 3039<br /><strong>Posted:</strong> 19 December 2005 at 10:56am<br /><br />You shall have a command handler for the grayed command.]]>
   </description>
   <pubDate>Mon, 19 Dec 2005 10:56:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=10259&amp;title=how-to-enable-menu-item-on-popup#10259</guid>
  </item> 
  <item>
   <title><![CDATA[How to enable menu item &#111;n popup? : I also tried this, and it doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=10258&amp;title=how-to-enable-menu-item-on-popup#10258</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1143">umcbrad</a><br /><strong>Subject:</strong> 3039<br /><strong>Posted:</strong> 19 December 2005 at 9:40am<br /><br /><P>I also tried this, and it doesn't work...</P><P>CMenu mnu;<BR>&nbsp;mnu.LoadMenu(IDR_RCLICK_OBJECT);<BR>&nbsp;mnu.EnableMenuItem(ID_OBJECT_LINK_LABEL, TRUE);<BR>&nbsp;//owner window is set to 'this', which means it gets the WM_COMMAND messages...<BR>&nbsp;CXTPCommandBars::TrackPopupMenu(&amp;mnu, TPM_RIGHTBUTTON , point.x, point.y, this, 0, 0, gpTheVGMainFrm-&gt;GetCommandBars());<BR></P>]]>
   </description>
   <pubDate>Mon, 19 Dec 2005 09:40:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=10258&amp;title=how-to-enable-menu-item-on-popup#10258</guid>
  </item> 
  <item>
   <title><![CDATA[How to enable menu item &#111;n popup? : I would like some help with this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=10257&amp;title=how-to-enable-menu-item-on-popup#10257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1143">umcbrad</a><br /><strong>Subject:</strong> 3039<br /><strong>Posted:</strong> 19 December 2005 at 9:36am<br /><br /><P>I would like some help with this problem also....menus is always grayed out...I can't seem to fix it...</P><P>As usual, it seems to work in the examples, but I can't see why...</P><P>I am trying to invoke it is the view of an MDI app.&nbsp; Here is my code</P><P><strong>void CVanGoghView::OnRButtonDown(UINT nFlags, CPoint point) <BR>{<BR>&nbsp;// TODO: Add your message handler code here and/or call default<BR>&nbsp;<BR>&nbsp;CScrollView::OnRButtonDown(nFlags, point);</strong></P><P><strong>&nbsp;ClientToScreen(&amp;point);<BR>&nbsp;CMenu mnu;<BR>&nbsp;mnu.LoadMenu(IDR_RCLICK_OBJECT);<BR>&nbsp;//owner window is set to 'this', which means it gets the WM_COMMAND messages...<BR>&nbsp;CXTPCommandBars::TrackPopupMenu(&amp;mnu, TPM_RIGHTBUTTON , point.x, point.y, this, 0, 0, gpTheVGMainFrm-&gt;GetCommandBars());<BR>}</strong></P><P><strong></strong>&nbsp;</P><P>thanks,</P><P>&nbsp;</P><P>Brad</P>]]>
   </description>
   <pubDate>Mon, 19 Dec 2005 09:36:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=10257&amp;title=how-to-enable-menu-item-on-popup#10257</guid>
  </item> 
  <item>
   <title><![CDATA[How to enable menu item &#111;n popup? : I solve it myself by adding TPM_NONOTIFY...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=9062&amp;title=how-to-enable-menu-item-on-popup#9062</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 3039<br /><strong>Posted:</strong> 16 October 2005 at 8:53am<br /><br />I solve it myself by adding TPM_NONOTIFY flag.]]>
   </description>
   <pubDate>Sun, 16 Oct 2005 08:53:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=9062&amp;title=how-to-enable-menu-item-on-popup#9062</guid>
  </item> 
  <item>
   <title><![CDATA[How to enable menu item &#111;n popup? : Hi, I use the following code to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=9059&amp;title=how-to-enable-menu-item-on-popup#9059</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=797">jeffcmj</a><br /><strong>Subject:</strong> 3039<br /><strong>Posted:</strong> 15 October 2005 at 7:40am<br /><br /><P>Hi, I use the following code to show a popup menu</P><P>int nID = CXTPCommandBars::TrackPopupMenu(&amp;menu, TPM_RIGHTBUTTON|TPM_RECURSE|<strong>TPM_RETURNCMD</strong>, pt.x, pt.y, AfxGetMainWnd(),NULL,NULL,pBars);<BR></P><P>My question is the menu items are all disabled, since I don't have a command handler. With MFC I can&nbsp;disable CMainFrame::m_bAutoMenuEnable to have them enabled, but with XTP, it does not work.</P><P>Please advise.</P><P>Thanks</P><P>Jeff</P>]]>
   </description>
   <pubDate>Sat, 15 Oct 2005 07:40:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3039&amp;PID=9059&amp;title=how-to-enable-menu-item-on-popup#9059</guid>
  </item> 
 </channel>
</rss>