<?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 : TrackPopupMenu uses sendmessage</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : TrackPopupMenu uses sendmessage]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 04:01:58 +0000</pubDate>
  <lastBuildDate>Tue, 29 Apr 2008 17:12:30 +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=10348</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[TrackPopupMenu uses sendmessage : SendMessage does not allow the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10348&amp;PID=34416&amp;title=trackpopupmenu-uses-sendmessage#34416</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 10348<br /><strong>Posted:</strong> 29 April 2008 at 5:12pm<br /><br />SendMessage does not allow the stack to unwind before the WM_COMMAND message is handled. This can cause lifetime issues if a dialog or a command initiated the menu display.<DIV>&nbsp;</DIV><DIV>I changed our usage of the function so that I always get the command id returned from the call. I then call PostMessage myself.</DIV><DIV>&nbsp;</DIV><DIV>This was just totally unexpected on my part as Windows and (now) MFC always call PostMessage but easily handled to give us back the behavior we are used to by adding the TPM_RETURNCMD flag to the call.</DIV>]]>
   </description>
   <pubDate>Tue, 29 Apr 2008 17:12:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10348&amp;PID=34416&amp;title=trackpopupmenu-uses-sendmessage#34416</guid>
  </item> 
  <item>
   <title><![CDATA[TrackPopupMenu uses sendmessage : Hi, What problem do you have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10348&amp;PID=34206&amp;title=trackpopupmenu-uses-sendmessage#34206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10348<br /><strong>Posted:</strong> 24 April 2008 at 1:35pm<br /><br />Hi,<DIV>What problem do you have with SendMessage ?</DIV>]]>
   </description>
   <pubDate>Thu, 24 Apr 2008 13:35:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10348&amp;PID=34206&amp;title=trackpopupmenu-uses-sendmessage#34206</guid>
  </item> 
  <item>
   <title><![CDATA[TrackPopupMenu uses sendmessage : Why does a command selected from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10348&amp;PID=34199&amp;title=trackpopupmenu-uses-sendmessage#34199</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 10348<br /><strong>Posted:</strong> 24 April 2008 at 11:48am<br /><br />Why does a command selected from a menu when TrackPopupMenu(Ex) is called get started via SendMessage instead of the windows and MFC way, which in my experience is via PostMessage?<DIV>&nbsp;</DIV><DIV>Is this a bug?</DIV><DIV>&nbsp;</DIV><DIV>It sure was unexpected on my part! So now I wonder why it is this way in case there is something I just don't get about the CJ paradigm.</DIV>]]>
   </description>
   <pubDate>Thu, 24 Apr 2008 11:48:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10348&amp;PID=34199&amp;title=trackpopupmenu-uses-sendmessage#34199</guid>
  </item> 
 </channel>
</rss>