<?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 : Redraw Issue with CXTPTabClientWnd</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Redraw Issue with CXTPTabClientWnd]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 15:32:34 +0000</pubDate>
  <lastBuildDate>Thu, 07 Jul 2005 15:24:29 +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=2426</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[Redraw Issue with CXTPTabClientWnd : Hello, the best way to avoid...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2426&amp;PID=7550&amp;title=redraw-issue-with-cxtptabclientwnd#7550</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=976">pascal</a><br /><strong>Subject:</strong> 2426<br /><strong>Posted:</strong> 07 July 2005 at 3:24pm<br /><br /><P>Hello,</P><P>the best way to avoid fleeking is to inherit from CXTPTabClientWnd and to catch the WM_MDIACTIVATE message. You should then lock the redraw before calling the base class and unlock it after execution.&nbsp; See code below.</P><P>best regards from Göttingen, germany</P><FONT size=2><P>BEGIN_MESSAGE_MAP(CMainTabClientWnd, CXTPTabClientWnd)ON_WM_MDIACTIVATE()<BR>END_MESSAGE_MAP()</P><P></FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> CMainTabClientWnd::OnMDIActivate(BOOL bActivate,CWnd* pActivateWnd, CWnd* pDeactivateWnd)<BR>{<BR>SetRedraw(FALSE);<BR>CWnd::OnMDIActivate(bActivate, pActivateWnd, pDeactivateWnd);<BR>SetRedraw(TRUE);</P><P>RedrawWindow( NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE | RDW_ALLCHILDREN);<BR>}</P></FONT><!-- Signature -->]]>
   </description>
   <pubDate>Thu, 07 Jul 2005 15:24:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2426&amp;PID=7550&amp;title=redraw-issue-with-cxtptabclientwnd#7550</guid>
  </item> 
  <item>
   <title><![CDATA[Redraw Issue with CXTPTabClientWnd : BOOL CChildFrame::PreCreateWindow(CREATESTRUCT&amp;amp;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2426&amp;PID=7412&amp;title=redraw-issue-with-cxtptabclientwnd#7412</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1249">proe</a><br /><strong>Subject:</strong> 2426<br /><strong>Posted:</strong> 03 July 2005 at 3:37am<br /><br /><P>BOOL CChildFrame::PreCreateWindow(CREATESTRUCT&amp; cs)<BR>{<BR>&nbsp;// Make sure view is maximum size to eliminate <BR>&nbsp;// flicker when switching tabs.<BR>&nbsp;cs.x = cs.y = 0;&nbsp;<BR>&nbsp;cs.cx =&nbsp;cs.cy = 32767;</P><P>&nbsp;if( !CMDIChildWnd::PreCreateWindow(cs) )<BR>&nbsp;&nbsp;return FALSE;</P><P>&nbsp;return TRUE;<BR>}<BR></P>]]>
   </description>
   <pubDate>Sun, 03 Jul 2005 03:37:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2426&amp;PID=7412&amp;title=redraw-issue-with-cxtptabclientwnd#7412</guid>
  </item> 
  <item>
   <title><![CDATA[Redraw Issue with CXTPTabClientWnd : When using CXTTabClientWnd for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2426&amp;PID=7203&amp;title=redraw-issue-with-cxtptabclientwnd#7203</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=14">Graham</a><br /><strong>Subject:</strong> 2426<br /><strong>Posted:</strong> 21 June 2005 at 11:23am<br /><br /><P>When using CXTTabClientWnd for tabbed windows the redraw is messy when switching between windows when they are maximised. It looks as though when you&nbsp;press the tab to change active window, the window is first drawn restored, then drawn maximised which makes it look messy. It is easily reproducable using the toolkit example program MDIPanes.</P><P>In MDIPanes ManFrm.h add the following member variable to add tabbed windows</P><P>CXTPTabClientWnd m_MTIClientWnd</P><P>Then in CMainFrame::OnCreate, add the following line before LoadCommandBars</P><P>m_MTIClientWnd.Attach (this, FALSE);</P><P>Then when you run the application, add a couple of new documents, maximize the documents, and then switch between them using the tabs.</P><P>Thanks,</P><P>Graham<FONT color=#ffffff size=2></P></FONT>]]>
   </description>
   <pubDate>Tue, 21 Jun 2005 11:23:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2426&amp;PID=7203&amp;title=redraw-issue-with-cxtptabclientwnd#7203</guid>
  </item> 
 </channel>
</rss>