<?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 : Handling WM_ENTERMENULOOP and WM_EXITMENULOOP</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Handling WM_ENTERMENULOOP and WM_EXITMENULOOP]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 13:23:20 +0000</pubDate>
  <lastBuildDate>Thu, 08 Feb 2007 19:06:09 +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=6344</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[Handling WM_ENTERMENULOOP and WM_EXITMENULOOP : That did the trick. Thanks! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6344&amp;PID=20222&amp;title=handling-wm-entermenuloop-and-wm-exitmenuloop#20222</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2742">emmanuel</a><br /><strong>Subject:</strong> 6344<br /><strong>Posted:</strong> 08 February 2007 at 7:06pm<br /><br /><P>That did the trick. Thanks!</P>]]>
   </description>
   <pubDate>Thu, 08 Feb 2007 19:06:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6344&amp;PID=20222&amp;title=handling-wm-entermenuloop-and-wm-exitmenuloop#20222</guid>
  </item> 
  <item>
   <title><![CDATA[Handling WM_ENTERMENULOOP and WM_EXITMENULOOP : Hi,  If you have 10.3/10.4 here...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6344&amp;PID=20171&amp;title=handling-wm-entermenuloop-and-wm-exitmenuloop#20171</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6344<br /><strong>Posted:</strong> 08 February 2007 at 1:20am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>If you have 10.3/10.4 here workaround:</DIV><DIV>&nbsp;</DIV><DIV>class CMyCommandBars : public CXTPCommandBars<BR>{<BR>&nbsp;DECLARE_DYNCREATE(CMyCommandBars)<BR>&nbsp;CMyCommandBars()<BR>&nbsp;{<BR>&nbsp;&nbsp;m_bTracking = FALSE;<BR>&nbsp;}<BR>&nbsp;void OnTrackingModeChanged(CXTPCommandBar* pCommandBar, int bMode)<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPCommandBars::OnTrackingModeChanged(pCommandBar, bMode);</DIV><DIV>&nbsp;&nbsp;if (bMode &amp;&amp; !m_bTracking)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;m_bTracking = TRUE;<BR>&nbsp;&nbsp;&nbsp;GetSite()-&gt;SendMessage(WM_ENTERMENULOOP);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;else if (!bMode &amp;&amp; !GetMouseManager()-&gt;IsTrackedLock(0) &amp;&amp; m_bTracking)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;m_bTracking = FALSE;<BR>&nbsp;&nbsp;&nbsp;GetSite()-&gt;SendMessage(WM_EXITMENULOOP);<BR>&nbsp;&nbsp;}<BR>&nbsp;}</DIV><DIV>&nbsp;BOOL m_bTracking;<BR>};<BR>IMPLEMENT_DYNCREATE(CMyCommandBars, CXTPCommandBars)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>usage:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;if (!InitCommandBars(RUNTIME_CLASS(CMyCommandBars)))<BR>&nbsp;&nbsp;return -1;<BR></DIV>]]>
   </description>
   <pubDate>Thu, 08 Feb 2007 01:20:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6344&amp;PID=20171&amp;title=handling-wm-entermenuloop-and-wm-exitmenuloop#20171</guid>
  </item> 
  <item>
   <title><![CDATA[Handling WM_ENTERMENULOOP and WM_EXITMENULOOP : Ahh, so these messages arenever...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6344&amp;PID=20163&amp;title=handling-wm-entermenuloop-and-wm-exitmenuloop#20163</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2742">emmanuel</a><br /><strong>Subject:</strong> 6344<br /><strong>Posted:</strong> 07 February 2007 at 4:53pm<br /><br /><P>Ahh, so these messages are&nbsp;never generated. I'm developing an application that contains a 3D render window (using Direct3D) that is continously rendered to. However, I would like to pause the rendering when the user activates a menu (e.g. File). The standard way of handling this in a D3D app is to pause/unpause the drawing in response to the WM_ENTERMENULOOP and WM_EXITMENULOOP messages. Is there some analogous way of handling this with CommandBars?</P><P>Thanks again.</P>]]>
   </description>
   <pubDate>Wed, 07 Feb 2007 16:53:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6344&amp;PID=20163&amp;title=handling-wm-entermenuloop-and-wm-exitmenuloop#20163</guid>
  </item> 
  <item>
   <title><![CDATA[Handling WM_ENTERMENULOOP and WM_EXITMENULOOP : Hi,  No, CommandBars don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6344&amp;PID=20159&amp;title=handling-wm-entermenuloop-and-wm-exitmenuloop#20159</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6344<br /><strong>Posted:</strong> 07 February 2007 at 3:15pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>No, CommandBars don't have such messages. What do you want implement in such handlers?</DIV>]]>
   </description>
   <pubDate>Wed, 07 Feb 2007 15:15:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6344&amp;PID=20159&amp;title=handling-wm-entermenuloop-and-wm-exitmenuloop#20159</guid>
  </item> 
  <item>
   <title><![CDATA[Handling WM_ENTERMENULOOP and WM_EXITMENULOOP : In a normal MFC app (not using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6344&amp;PID=20153&amp;title=handling-wm-entermenuloop-and-wm-exitmenuloop#20153</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2742">emmanuel</a><br /><strong>Subject:</strong> 6344<br /><strong>Posted:</strong> 07 February 2007 at 3:00pm<br /><br />In a normal MFC app (not using ToolkitPro) you can&nbsp;receive the WM_ENTERMENULOOP and WM_EXITMENULOOP messages through the CFrameWnd derived class. However, this does not appear to be the case with a ToolkitPro MFC app. Is there a way to receive these messages (ideally through the derived CFrameWnd class)?<DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Wed, 07 Feb 2007 15:00:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6344&amp;PID=20153&amp;title=handling-wm-entermenuloop-and-wm-exitmenuloop#20153</guid>
  </item> 
 </channel>
</rss>