<?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 : SOLVED MTI tab change flicker</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : SOLVED MTI tab change flicker]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 00:55:23 +0000</pubDate>
  <lastBuildDate>Wed, 06 Apr 2005 12:25:14 +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=2054</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[SOLVED MTI tab change flicker : Wow, thanks for all the changes!BTW...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6133&amp;title=solved-mti-tab-change-flicker#6133</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 2054<br /><strong>Posted:</strong> 06 April 2005 at 12:25pm<br /><br /><br>Wow, thanks for all the changes!<br>BTW guys, documentation is looking very nice in recent versions.<br>Keep up the good work.<br><br>]]>
   </description>
   <pubDate>Wed, 06 Apr 2005 12:25:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6133&amp;title=solved-mti-tab-change-flicker#6133</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED MTI tab change flicker : We changed it too. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6109&amp;title=solved-mti-tab-change-flicker#6109</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2054<br /><strong>Posted:</strong> 06 April 2005 at 5:00am<br /><br /><P>We changed it too. </P>]]>
   </description>
   <pubDate>Wed, 06 Apr 2005 05:00:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6109&amp;title=solved-mti-tab-change-flicker#6109</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED MTI tab change flicker : Ok, the only thing causing the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6048&amp;title=solved-mti-tab-change-flicker#6048</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 2054<br /><strong>Posted:</strong> 31 March 2005 at 2:09pm<br /><br /><br>Ok, the only thing causing the flicker then for me was because I was calling SetWindowPos in my OnInitialUpdate, so I just only do that if I am NOT using tab groups, and its fine. I have no flicker anywhere at all, but there is another problem.&nbsp; I scale my windows to autofit some content in them when they are created, so I need to know their exact size after they are created, but before they are shown.&nbsp; Using the SetRedraw wrapping this works most of the time, except when using MTI and it is the first window to be displayed, because the tab bar doesn't appear until later on.&nbsp; I thought calling CXTPTabClientWnd::UpdateContents would help, but that function basically does nothing because of the IsWindowVisible() check at the start there. I just changed it from:<br>&nbsp;&nbsp;&nbsp; if (m_hWnd == 0 || !IsWindowVisible())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>to:<br>&nbsp;&nbsp;&nbsp; if (m_hWnd == 0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br><br>and suddenly all my code works great! I know the exact size of the windows, regardless of the tab bar appearing or not, and I get absolutely no flickering anywhere at all.<br><br><span style="font-weight: bold;">Oleg </span>- can this change be made into the next release?&nbsp; I did not see any bad side effect from removing that IsWindowVisible call from UpdateContents() but maybe there is a situation I am not thinking of?<br><br>]]>
   </description>
   <pubDate>Thu, 31 Mar 2005 14:09:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6048&amp;title=solved-mti-tab-change-flicker#6048</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED MTI tab change flicker : It might depend if you are using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6047&amp;title=solved-mti-tab-change-flicker#6047</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 2054<br /><strong>Posted:</strong> 31 March 2005 at 11:54am<br /><br /><br>It might depend if you are using tab groups or not. Attach(this, TRUE or FALSE);<br>If you are not using groups, you can use the same SetRedraw trick when creating new windows to eliminate all flicker.&nbsp; I still do get flicker when I am using groups, because something in causing the redraw to be turned back on someplace in CXTPTabClientWnd then.&nbsp; I am still investigating that.<br><br><br>]]>
   </description>
   <pubDate>Thu, 31 Mar 2005 11:54:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6047&amp;title=solved-mti-tab-change-flicker#6047</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED MTI tab change flicker : Cool, But when first pane still...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6026&amp;title=solved-mti-tab-change-flicker#6026</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=272">zhou_wz</a><br /><strong>Subject:</strong> 2054<br /><strong>Posted:</strong> 31 March 2005 at 4:42am<br /><br />Cool, But when first pane still flickers if you let it maximum programlly. ]]>
   </description>
   <pubDate>Thu, 31 Mar 2005 04:42:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6026&amp;title=solved-mti-tab-change-flicker#6026</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED MTI tab change flicker : great solution. this problem has...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6025&amp;title=solved-mti-tab-change-flicker#6025</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1011">Barto</a><br /><strong>Subject:</strong> 2054<br /><strong>Posted:</strong> 31 March 2005 at 4:18am<br /><br />great solution. this problem has always been bugging me, but i never bothered to look for a solution as I found out that several other applications all have the same problem... thanx]]>
   </description>
   <pubDate>Thu, 31 Mar 2005 04:18:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6025&amp;title=solved-mti-tab-change-flicker#6025</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED MTI tab change flicker : I&amp;#039;ve seen a lot of posts...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6020&amp;title=solved-mti-tab-change-flicker#6020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 2054<br /><strong>Posted:</strong> 30 March 2005 at 8:10pm<br /><br />I've seen a lot of posts about MTI tabs and various flicker issues when switching tabs. There seemed to be lots of different methods to try to solve this, but they don't make much sense. Hard coding large window size values, ignoring erasing the background, etc. None of that really works for all flicker and doesn't seem to be the best way to solve it anyways.<br>What I did was simply override ON_WM_MDIACTIVATE() in my CXTPTabClientWnd derived class (and also my CMDIClient CWnd derived class for when I'm not even using MTI!) and place in it:<br><br>void MyCXTPTabClientWndDerivedClass::OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd)<br>{<br>&nbsp;&nbsp;&nbsp; SetRedraw(FALSE);<br>&nbsp;&nbsp;&nbsp; CWnd::OnMDIActivate(bActivate, pActivateWnd, pDeactivateWnd);<br>&nbsp;&nbsp;&nbsp; SetRedraw(TRUE);<br>&nbsp;&nbsp;&nbsp; RedrawWindow(NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE | RDW_ALLCHILDREN);<br>}<br><br>Thus, any redrawing for any reason that happens during the switch process, doesn't take place until the switch completes, and you never see the flicker of a window when changing windows.<br><br>]]>
   </description>
   <pubDate>Wed, 30 Mar 2005 20:10:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2054&amp;PID=6020&amp;title=solved-mti-tab-change-flicker#6020</guid>
  </item> 
 </channel>
</rss>