<?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 : Correct base class in MFC macro?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Correct base class in MFC macro?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 22:45:57 +0000</pubDate>
  <lastBuildDate>Fri, 15 Dec 2006 14:04:37 +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=5729</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[Correct base class in MFC macro? : you right, you can do it. 1....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5729&amp;PID=18274&amp;title=correct-base-class-in-mfc-macro#18274</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5729<br /><strong>Posted:</strong> 15 December 2006 at 2:04pm<br /><br /><P>you right, you can do it.</P><DIV>1. right.</DIV><DIV>2. right. only CCmdTarget....</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>better use CXTPFrameWnd. Message maps/dyanamic checking don't use now for CXTPFrameWnd, but how knows may be later we will add something...</DIV>]]>
   </description>
   <pubDate>Fri, 15 Dec 2006 14:04:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5729&amp;PID=18274&amp;title=correct-base-class-in-mfc-macro#18274</guid>
  </item> 
  <item>
   <title><![CDATA[Correct base class in MFC macro? : I was wondering about the proper...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5729&amp;PID=18021&amp;title=correct-base-class-in-mfc-macro#18021</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1003">Warren</a><br /><strong>Subject:</strong> 5729<br /><strong>Posted:</strong> 08 December 2006 at 1:07pm<br /><br />I was wondering about the proper base class in the MFC macros,&nbsp; when you multiply derive something. In the shortcutbar sample, the .h file looks like:<br><br><font face="Courier New, Courier, mono">class CMainFrame : public CXTPFrameWnd, CXTPOffice2007FrameHook<br>{<br>DECLARE_DYNCREATE(CMainFrame)<br>...<br></font><br>and the .cpp file looks like:<br><br><font face="Courier New, Courier, mono">IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)<br>BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)</font><br>...<br><br>I would have thought that the second parameter to these macros should be <font face="Courier New, Courier, mono">CXTPFrameWnd ?</font><br><br>I haven't used multiple-derivation with my own MFC classes much, mainly because of this issue. My assumption would be that you're okay to do this:<br>1) as long as the second class doesn't also derive from MFC's CObject,<br>2) you use the CObject derived name in the MFC macros, so the messages get passed to the right class.<br><br>Everything seems to be working fine as is, I'm just nervous about doing something wrong, so I'd appreciate a codejock comment on the issue.<br><br>Thanks very much<br><br>Warren<br><br>P.S. I'm using version 10.3.1 of the 'kit<br>]]>
   </description>
   <pubDate>Fri, 08 Dec 2006 13:07:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5729&amp;PID=18021&amp;title=correct-base-class-in-mfc-macro#18021</guid>
  </item> 
 </channel>
</rss>