<?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 : Popup menu not affected by command handlers?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Popup menu not affected by command handlers?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 11:22:38 +0000</pubDate>
  <lastBuildDate>Mon, 18 Feb 2008 11:45:37 +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=8481</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[Popup menu not affected by command handlers? : Thanks!  I found another solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8481&amp;PID=31296&amp;title=popup-menu-not-affected-by-command-handlers#31296</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 8481<br /><strong>Posted:</strong> 18 February 2008 at 11:45am<br /><br />Thanks!<DIV>&nbsp;</DIV><DIV>I found another solution too, which will also work when the menu is built in run-time...</DIV><DIV>&nbsp;</DIV><DIV>XTFuncContextMenu(pPopup, TPM_LEFTALIGN | TPM_RIGHTBUTTON, pos.x, pos.y, <strong>GetParentFrame()</strong>, NULL, <strong>0</strong>);</DIV>]]>
   </description>
   <pubDate>Mon, 18 Feb 2008 11:45:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8481&amp;PID=31296&amp;title=popup-menu-not-affected-by-command-handlers#31296</guid>
  </item> 
  <item>
   <title><![CDATA[Popup menu not affected by command handlers? : ohh you need use handlers. ok. when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8481&amp;PID=31275&amp;title=popup-menu-not-affected-by-command-handlers#31275</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8481<br /><strong>Posted:</strong> 18 February 2008 at 3:47am<br /><br />ohh you need use handlers. ok.<DIV>when you can nonstatic version</DIV><DIV>&nbsp;</DIV><DIV>pCommandBars-&gt;TrackPopupMenu.</DIV><DIV>&nbsp;</DIV><DIV>Or better use ContextMenus internal feature - See CustomThems sample:</DIV><DIV>&nbsp;</DIV><DIV>add in OnCreate:</DIV><DIV>&nbsp;pCommandBars-&gt;GetContextMenus()-&gt;Add(<strong>IDR_CONTEXT_MENU</strong>);<BR></DIV><DIV>&nbsp;</DIV><DIV>execute in handler:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;((CXTPMDIFrameWnd*)AfxGetMainWnd())-&gt;GetCommandBars()-&gt;<BR>&nbsp;&nbsp;TrackPopupMenu(<strong>IDR_CONTEXT_MENU</strong>, TPM_RIGHTBUTTON, point.x, point.y);<BR></DIV>]]>
   </description>
   <pubDate>Mon, 18 Feb 2008 03:47:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8481&amp;PID=31275&amp;title=popup-menu-not-affected-by-command-handlers#31275</guid>
  </item> 
  <item>
   <title><![CDATA[Popup menu not affected by command handlers? : Can&amp;#039;t get it working. I&amp;#039;ve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8481&amp;PID=31264&amp;title=popup-menu-not-affected-by-command-handlers#31264</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 8481<br /><strong>Posted:</strong> 17 February 2008 at 2:20pm<br /><br />Can't get it working. I've tried all different types of combinations.<DIV>&nbsp;</DIV><DIV>TPM_NONOTIFY... altering pWndPopupOwner... using X<FONT color=#020002 size=2>TFuncContextMenu()... using <FONT color=#040004 size=2>CXTPCommandBars</FONT><FONT color=#000000 size=2>::</FONT><FONT color=#040004 size=2>TrackPopupMenu().</FONT></FONT></DIV><DIV><FONT color=#040004 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#040004 size=2>The menu items are always enabled, even if I add update handlers for them in my frame window!</FONT></DIV><DIV><FONT color=#040004 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#040004 size=2>What is the proper way of using the right-click menu?</FONT></DIV>]]>
   </description>
   <pubDate>Sun, 17 Feb 2008 14:20:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8481&amp;PID=31264&amp;title=popup-menu-not-affected-by-command-handlers#31264</guid>
  </item> 
  <item>
   <title><![CDATA[Popup menu not affected by command handlers? : Hi,  Add TPM_NONOTIFY. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8481&amp;PID=27506&amp;title=popup-menu-not-affected-by-command-handlers#27506</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8481<br /><strong>Posted:</strong> 22 October 2007 at 2:22am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Add TPM_NONOTIFY.</DIV>]]>
   </description>
   <pubDate>Mon, 22 Oct 2007 02:22:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8481&amp;PID=27506&amp;title=popup-menu-not-affected-by-command-handlers#27506</guid>
  </item> 
  <item>
   <title><![CDATA[Popup menu not affected by command handlers? : What am I doing wrong?  XTFuncContextMenu(pPopup,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8481&amp;PID=27493&amp;title=popup-menu-not-affected-by-command-handlers#27493</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 8481<br /><strong>Posted:</strong> 20 October 2007 at 6:00pm<br /><br />What am I doing wrong?<DIV><FONT color=#020002 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#020002 size=2>XTFuncContextMenu</FONT><FONT size=2>(</FONT><FONT color=#020002 size=2>pPopup</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>TPM_LEFTALIGN</FONT><FONT size=2> | </FONT><FONT color=#020002 size=2>TPM_RIGHTBUTTON</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>pos</FONT><FONT size=2>.</FONT><FONT color=#020002 size=2>x</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>pos</FONT><FONT size=2>.</FONT><FONT color=#020002 size=2>y</FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, </FONT><FONT color=#020002 size=2>NULL</FONT><FONT size=2>);</DIV><DIV></DIV><P>All items on the menu are enabled even though their IDs have been disabled on the mainframe menu!</FONT></P>]]>
   </description>
   <pubDate>Sat, 20 Oct 2007 18:00:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8481&amp;PID=27493&amp;title=popup-menu-not-affected-by-command-handlers#27493</guid>
  </item> 
 </channel>
</rss>