<?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 : CXTPOffice2007FrameHook and ON_MESSAGE</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPOffice2007FrameHook and ON_MESSAGE]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 12:14:45 +0000</pubDate>
  <lastBuildDate>Mon, 05 Feb 2007 02:49:28 +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=6316</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[CXTPOffice2007FrameHook and ON_MESSAGE : Dang, you&amp;#039;re right, ON_MESSAGE...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6316&amp;PID=20072&amp;title=cxtpoffice2007framehook-and-on-message#20072</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 6316<br /><strong>Posted:</strong> 05 February 2007 at 2:49am<br /><br />Dang, you're right, ON_MESSAGE handlers should return a LRESULT.<br>It's so obvious that I haven't stumbled about that <img src="http://forum.codejock.com/smileys/smiley24.gif" border="0" align="absmiddle"><br><br>]]>
   </description>
   <pubDate>Mon, 05 Feb 2007 02:49:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6316&amp;PID=20072&amp;title=cxtpoffice2007framehook-and-on-message#20072</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPOffice2007FrameHook and ON_MESSAGE : Hi,  Looks like right error...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6316&amp;PID=20065&amp;title=cxtpoffice2007framehook-and-on-message#20065</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6316<br /><strong>Posted:</strong> 05 February 2007 at 1:28am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Looks like right error for me.</DIV><DIV>Instead "void" you have&nbsp;return "LRESULT"...</DIV>]]>
   </description>
   <pubDate>Mon, 05 Feb 2007 01:28:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6316&amp;PID=20065&amp;title=cxtpoffice2007framehook-and-on-message#20065</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPOffice2007FrameHook and ON_MESSAGE :  If you derive the CMainFrame...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6316&amp;PID=20056&amp;title=cxtpoffice2007framehook-and-on-message#20056</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 6316<br /><strong>Posted:</strong> 04 February 2007 at 1:01pm<br /><br />If you derive the <b>CMainFrame</b> from <b>CXTPMDIFrameWnd</b> and <b>CXTPOffice2007FrameHook</b> the <b>ON_MESSAGE</b> macro doesn't work any longer.<br><br><i>error C2440: 'type cast' : cannot convert from 'void (__thiscall CMainFrame::*)(unsigned int,long)' to 'long (__thiscall CWnd::*)(unsigned<br>&nbsp;int,long)'</i><br><br><br>As a workaround I've made my own macro, maybe you can come up with a better solution?<br><br><br>#define XTP_ON_MESSAGE(message, className, memberFxn) \<br>&nbsp;&nbsp; &nbsp;{ message, 0, 0, 0, AfxSig_lwl, \<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; (AFX_PMSG)(void (className::*)(void))(LRESULT (AFX_MSG_CALL className::*)(WPARAM, LPARAM))&amp;memberFxn },<br><br>]]>
   </description>
   <pubDate>Sun, 04 Feb 2007 13:01:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6316&amp;PID=20056&amp;title=cxtpoffice2007framehook-and-on-message#20056</guid>
  </item> 
 </channel>
</rss>