<?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 : CXTPTabClientWnd and background image</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPTabClientWnd and background image]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 03:30:56 +0000</pubDate>
  <lastBuildDate>Fri, 01 Sep 2006 17:22:49 +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=4929</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[CXTPTabClientWnd and background image : aditional infoif you try to do...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4929&amp;PID=15425&amp;title=cxtptabclientwnd-and-background-image#15425</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2206">Cedric Caron</a><br /><strong>Subject:</strong> 4929<br /><strong>Posted:</strong> 01 September 2006 at 5:22pm<br /><br /><P>aditional info&nbsp;if you try to do the same in your application:</P><DIV>I tester GDI and GDI+ to display my background image. GDI+ is&nbsp;faster give a beter result and requiere less coding.</DIV><DIV>&nbsp;</DIV><DIV>GDI:</DIV><DIV>&nbsp;</DIV><DIV>CDC cdc;<BR>cdc.CreateCompatibleDC(pDC);<BR>CBitmap * pOldBmp = cdc.SelectObject(&amp;m_bmpBackground);</DIV><DIV>BITMAP bmp;<BR>m_bmpBackground.GetBitmap(&amp;bmp);</DIV><DIV>pDC-&gt;StretchBlt(rc.left, rc.top, rc.right, rc.bottom, &amp;cdc, 0, 0, bmp.bmWidth, bmp.bmHeight, SRCCOPY);</DIV><DIV>cdc.SelectObject(pOldBmp);</DIV><DIV>&nbsp;</DIV><DIV>GDI+:</DIV><DIV>&nbsp;</DIV><DIV>Graphics gfx(*pDC);<BR>Bitmap bmp(AfxGetResourceHandle(), (WCHAR *)MAKEINTRESOURCE(IDB_BACKGROUND));</DIV><DIV>gfx.DrawImage(&amp;bmp, rc.left, rc.top, rc.Width(), rc.Height());</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 01 Sep 2006 17:22:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4929&amp;PID=15425&amp;title=cxtptabclientwnd-and-background-image#15425</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPTabClientWnd and background image : Hello,  yes, right. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4929&amp;PID=15418&amp;title=cxtptabclientwnd-and-background-image#15418</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4929<br /><strong>Posted:</strong> 01 September 2006 at 11:45am<br /><br /><DIV>Hello,</DIV><DIV>&nbsp;</DIV><DIV>yes, right.</DIV>]]>
   </description>
   <pubDate>Fri, 01 Sep 2006 11:45:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4929&amp;PID=15418&amp;title=cxtptabclientwnd-and-background-image#15418</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPTabClientWnd and background image : Thanks it is working fine. Aditionaly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4929&amp;PID=15393&amp;title=cxtptabclientwnd-and-background-image#15393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2206">Cedric Caron</a><br /><strong>Subject:</strong> 4929<br /><strong>Posted:</strong> 31 August 2006 at 7:28pm<br /><br /><P>Thanks it is working fine.</P><DIV>Aditionaly to OnFillBackground I overrided OnSize to force a full redraw of the background and resize my image </DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P>afx_msg </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> CMDIClientWnd::OnSize(UINT nType, </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> cx, </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> cy)</P><P>{</P><P>CXTPTabClientWnd::OnSize(nType, cx, cy);</P><P>Invalidate();</P><P>}</P></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 19:28:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4929&amp;PID=15393&amp;title=cxtptabclientwnd-and-background-image#15393</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPTabClientWnd and background image : Hello, Override CXTPTabClientWndand...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4929&amp;PID=15358&amp;title=cxtptabclientwnd-and-background-image#15358</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4929<br /><strong>Posted:</strong> 31 August 2006 at 8:33am<br /><br /><DIV>Hello,</DIV><DIV>Override CXTPTabClientWnd&nbsp;&nbsp;and its OnFillBackground.</DIV>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 08:33:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4929&amp;PID=15358&amp;title=cxtptabclientwnd-and-background-image#15358</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPTabClientWnd and background image : I use the code described on this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4929&amp;PID=15348&amp;title=cxtptabclientwnd-and-background-image#15348</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2206">Cedric Caron</a><br /><strong>Subject:</strong> 4929<br /><strong>Posted:</strong> 30 August 2006 at 10:35pm<br /><br />I use the code described on this page <a href="http://www.codeguru.com/forum/archive/index.php/t-319786.html" target="_blank">http://www.codeguru.com/forum/archive/index.php/t-319786.html</a> to add a background image in my software and this solution is working fine if i don't use CXTPTabClientWnd in my software.<DIV>&nbsp;</DIV><DIV>But if I use CXTPTabClientWnd&nbsp; the attach function faile to subclass m_hWndMDIClient which is already subclassed by my background painter.</DIV><DIV>&nbsp;</DIV><DIV>How can I safley add a background image to an aplication using CXTPTabClientWnd&nbsp;&nbsp; ?</DIV><DIV>&nbsp;</DIV><DIV>Thanks for your help</DIV><DIV>&nbsp;</DIV><DIV>Cédric</DIV>]]>
   </description>
   <pubDate>Wed, 30 Aug 2006 22:35:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4929&amp;PID=15348&amp;title=cxtptabclientwnd-and-background-image#15348</guid>
  </item> 
 </channel>
</rss>