<?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 : TrackPopupMenuEx and menu messages</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : TrackPopupMenuEx and menu messages]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 23:03:40 +0000</pubDate>
  <lastBuildDate>Wed, 21 Nov 2007 10:22:18 +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=8852</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[TrackPopupMenuEx and menu messages : I am calling the static TrackPopupMenuEx...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8852&amp;PID=28707&amp;title=trackpopupmenuex-and-menu-messages#28707</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 8852<br /><strong>Posted:</strong> 21 November 2007 at 10:22am<br /><br />I am calling the static TrackPopupMenuEx function that has the "pWnd" arg that the documentation says is the "owner window" and the "pWndOwner" that the documentation says "points to a CWnd object".<DIV>&nbsp;</DIV><DIV>I am also adding <FONT size=2>TPM_RETURNCMD to the input flags.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>My frame window handles WM_INITPOPUPMENU where we add bitmaps and enable/disable menu items etc. We also handle WM_MENUSELECT messages where we do tooltips for the tracked menu. These are called when I use the CMenu::TrackPopupMenuEx function.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>When I use CodeJock, neither of these messages are sent to the frame window regardless of whether I set one or both CWnd args to my frame window. Hence my menu entries that need to be disabled are not being disabled and I do not get my tooltips for the menu.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Note: I also tried the non-static TrackPopupMenuEx after obtaining the command bars object from the frame window with the same results. Nor does removing TPM_RETURNCMD make any difference.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>So:</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><DIV><FONT size=2>How does the tracked menu obtain the bitmaps?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>How do I get the normal menu messages (not just WM_COMMAND) sent to my frame window so I can influence the menu before it is presented to the user?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Wed, 21 Nov 2007 10:22:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8852&amp;PID=28707&amp;title=trackpopupmenuex-and-menu-messages#28707</guid>
  </item> 
 </channel>
</rss>