<?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 : PopupMenu - messages not routing correctl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : PopupMenu - messages not routing correctl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 05:24:16 +0000</pubDate>
  <lastBuildDate>Sat, 10 Jun 2006 13:50:32 +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=4387</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[PopupMenu - messages not routing correctl :  Thanks Oleg. The first method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4387&amp;PID=13560&amp;title=popupmenu-messages-not-routing-correctl#13560</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1391">craig</a><br /><strong>Subject:</strong> 4387<br /><strong>Posted:</strong> 10 June 2006 at 1:50pm<br /><br />Thanks Oleg.&nbsp; The first method worked.<br><br>I tryed the second method too but it didn't work.&nbsp; In the return statement, what is TBase?<br><br>My class derives from CWnd, so I tried changing the return statement to <span style="font-family: Courier New,Courier,mono;">return CWnd::OnWndMsg(...)</span> but the method appears to be virtual.&nbsp; The error I receive is:<br><br><span style="font-family: Courier New,Courier,mono;"> c:\vault\FreeWorldDesktop\FreeWorld\RgbaColorMenuGridItemWnd .cpp(65): error C2723: 'CRgbaColorMenuGridItemWnd::OnWndMsg' : 'virtual' storage-class specifier illegal on function definition<br><br>I have it all working, so you don't have to reply.&nbsp; I just thought it might be helpful to catalog the alternatives so the next guy wouldn't have to bug you.&nbsp; :-)<br><br>Thanks,<br>Craig<br><br></span><br><br>]]>
   </description>
   <pubDate>Sat, 10 Jun 2006 13:50:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4387&amp;PID=13560&amp;title=popupmenu-messages-not-routing-correctl#13560</guid>
  </item> 
  <item>
   <title><![CDATA[PopupMenu - messages not routing correctl : Hello,  2 solutions: m_pMsgWnd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4387&amp;PID=13551&amp;title=popupmenu-messages-not-routing-correctl#13551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4387<br /><strong>Posted:</strong> 10 June 2006 at 9:27am<br /><br /><P>Hello, </P><P>2 solutions:</P><P>m_pMsgWnd must be such class CXTPCommandBarsSiteBase&lt;CParentWndClass&gt;</P><P>or add</P><P>virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)<BR>&nbsp;{<BR>&nbsp;&nbsp;if (message == WM_XTP_COMMAND)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;LRESULT lResult = FALSE;<BR>&nbsp;&nbsp;&nbsp;NMHDR* pNMHDR = (NMHDR*)lParam;</P><P>&nbsp;&nbsp;&nbsp;UINT nID = (UINT)pNMHDR-&gt;idFrom;<BR>&nbsp;&nbsp;&nbsp;int nCode = pNMHDR-&gt;code;</P><P>&nbsp;&nbsp;&nbsp;AFX_NOTIFY notify;<BR>&nbsp;&nbsp;&nbsp;notify.pResult = &amp;lResult;<BR>&nbsp;&nbsp;&nbsp;notify.pNMHDR = pNMHDR;<BR>&nbsp;&nbsp;&nbsp;if (OnCmdMsg(nID, MAKELONG(nCode, WM_NOTIFY), &amp;notify, NULL))<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;*pResult = lResult;<BR>&nbsp;&nbsp;&nbsp;&nbsp;return TRUE;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;return FALSE;<BR>&nbsp;&nbsp;}</P><P>&nbsp;&nbsp;return TBase::OnWndMsg(message, wParam, lParam, pResult);<BR>&nbsp;}<BR></P><P>to your m_pMsgWnd class.</P>]]>
   </description>
   <pubDate>Sat, 10 Jun 2006 09:27:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4387&amp;PID=13551&amp;title=popupmenu-messages-not-routing-correctl#13551</guid>
  </item> 
  <item>
   <title><![CDATA[PopupMenu - messages not routing correctl : I&amp;#039;ve create a CXTPPopupMenu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4387&amp;PID=13547&amp;title=popupmenu-messages-not-routing-correctl#13547</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1391">craig</a><br /><strong>Subject:</strong> 4387<br /><strong>Posted:</strong> 09 June 2006 at 7:14pm<br /><br />I've create a CXTPPopupMenu with several controls on it.<br><br>I track it with CXTPCommandBars::TrackPopupMenu(pColorBar, 0, rcItem.left, rcItem.bottom, m_pMsgWnd);<br><br>&nbsp; The controls such as a simple button are generating messages that are recieved by m_pMsgWnd, but any of the controls that use ON_XTP_EXECUTE don't receive any messages.<br><br>How do I get my ON_XTP_EXECUTE messages to route to the parent window defined in m_pMsgWnd?<br><br>Thanks,<br>Craig<br><br><br><br>]]>
   </description>
   <pubDate>Fri, 09 Jun 2006 19:14:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4387&amp;PID=13547&amp;title=popupmenu-messages-not-routing-correctl#13547</guid>
  </item> 
 </channel>
</rss>