<?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 : SubclassWindow of CXTPMDIFrameWnd fails</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : SubclassWindow of CXTPMDIFrameWnd fails]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 20:40:55 +0000</pubDate>
  <lastBuildDate>Mon, 14 Jan 2008 09:41:17 +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=9300</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[SubclassWindow of CXTPMDIFrameWnd fails : No, I derive my CMainFrame from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9300&amp;PID=30109&amp;title=subclasswindow-of-cxtpmdiframewnd-fails#30109</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3649">alistair.m</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 14 January 2008 at 9:41am<br /><br />No, I derive my CMainFrame from CXTPMDIFrameWnd. The document type we use is a fixed size dialog so doesn't really work with a tabbed client format.<br><br>Thanks<br>Al.<br>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 09:41:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9300&amp;PID=30109&amp;title=subclasswindow-of-cxtpmdiframewnd-fails#30109</guid>
  </item> 
  <item>
   <title><![CDATA[SubclassWindow of CXTPMDIFrameWnd fails : Hi, Do you use CXTPTabClientWnd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9300&amp;PID=30104&amp;title=subclasswindow-of-cxtpmdiframewnd-fails#30104</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 14 January 2008 at 9:35am<br /><br />Hi,<DIV>Do you use CXTPTabClientWnd ?</DIV>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 09:35:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9300&amp;PID=30104&amp;title=subclasswindow-of-cxtpmdiframewnd-fails#30104</guid>
  </item> 
  <item>
   <title><![CDATA[SubclassWindow of CXTPMDIFrameWnd fails : Hi allI&amp;#039;m trying to get a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9300&amp;PID=30103&amp;title=subclasswindow-of-cxtpmdiframewnd-fails#30103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3649">alistair.m</a><br /><strong>Subject:</strong> 9300<br /><strong>Posted:</strong> 14 January 2008 at 7:23am<br /><br />Hi all<br><br>I'm trying to get a subclass working that used to work in my non CodeJock app. Now CMainFrame is derived from CXTPMDIFrameWnd, it asserts at the FromHandlePermanent(hWndNew) in CWnd::Attach(). I assume this is because the CodeJock parent class already has some form of subclassing and you can't subclass twice.<br><br>The subclassed class simply overrides OnEraseBkgnd and OnSize and paints text to the MDI frame background as described in many tutorials and examples on the net.<br>In my CMainFrame::OnCreate() I call:<br><br>//subclass to allow erasebkgnd to repaint colour of mainframe<br>CWnd* pChildWnd = GetWindow(GW_CHILD);<br>if (pChildWnd)<br>{<br>&nbsp;&nbsp;&nbsp; if (!m_wndMDIClient.SubclassWindow (pChildWnd -&gt; m_hWnd)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRACE ("Failed to subclass MDI client window\n");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (-1);<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>Any thoughts on how I can re-implement this functionality.<br>Thanks<br>Al.<br><br>]]>
   </description>
   <pubDate>Mon, 14 Jan 2008 07:23:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9300&amp;PID=30103&amp;title=subclasswindow-of-cxtpmdiframewnd-fails#30103</guid>
  </item> 
 </channel>
</rss>