<?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 : Tabbed MDI flicker</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Tabbed MDI flicker]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 18:43:41 +0000</pubDate>
  <lastBuildDate>Thu, 30 Mar 2006 23:25:09 +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=186</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[Tabbed MDI flicker :   Thanks support. That code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=186&amp;PID=11855&amp;title=tabbed-mdi-flicker#11855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1424">g_j_a_i_n</a><br /><strong>Subject:</strong> 186<br /><strong>Posted:</strong> 30 March 2006 at 11:25pm<br /><br /><br><br>Thanks support. That code really helped.<br><br>If any one of you wants to hide the maximize &amp; minimize buttons, you can use the following code<br><br>CXTPCommandBar* pMenuBar = pCommandBars-&gt;SetMenu("Menu Bar", IDR_MAINFRAME);<br>pMenuBar-&gt;SetFlags(xtpFlag<span ="highlight">Hide</span><span ="highlight">Minimize</span><span ="highlight">Box</span> | xtpFlag<span ="highlight">Hide</span><span ="highlight">Maximize</span><span ="highlight">Box</span>);<br>]]>
   </description>
   <pubDate>Thu, 30 Mar 2006 23:25:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=186&amp;PID=11855&amp;title=tabbed-mdi-flicker#11855</guid>
  </item> 
  <item>
   <title><![CDATA[Tabbed MDI flicker : Hi, can anyone convert this to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=186&amp;PID=8420&amp;title=tabbed-mdi-flicker#8420</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1433">tymberwyld</a><br /><strong>Subject:</strong> 186<br /><strong>Posted:</strong> 30 August 2005 at 9:14am<br /><br />Hi, can anyone convert this to C#?&nbsp; I'm not familiar with the C++Forms structure and so it's kind of difficult to see what's going onhere.&nbsp; I understand the CreateParams structure, but the <span style="color: rgb(255, 0, 0);">ActiveFrame()</span> method is throwing me.<br><br>Thanks for any help! <img src="http://forum.codejock.com/smileys/smiley4.gif" border="0"><br>]]>
   </description>
   <pubDate>Tue, 30 Aug 2005 09:14:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=186&amp;PID=8420&amp;title=tabbed-mdi-flicker#8420</guid>
  </item> 
  <item>
   <title><![CDATA[Tabbed MDI flicker : Hello, Add the following code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=186&amp;PID=389&amp;title=tabbed-mdi-flicker#389</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 186<br /><strong>Posted:</strong> 28 October 2003 at 4:40pm<br /><br /><P>Hello,</P><P>Add the following code to your CChildFrame&nbsp;class to eliminate the flicker you see when switching&nbsp;MDI tabs:</P><FONT color=#0000ff><P><FONT face="Courier New, Courier, mono">BOOL</FONT></FONT><FONT face="Courier New, Courier, mono"> <FONT color=#0000ff>CChildFrame</FONT>::<FONT color=#880000>PreCreateWindow</FONT>(<FONT color=#0000ff>CREATESTRUCT</FONT>&amp; <FONT color=#808080>cs</FONT>)<BR></FONT><FONT face="Courier New, Courier, mono">{<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT color=#008000><FONT face="Courier New, Courier, mono">// make sure view is maximum size to eliminate<BR>&nbsp;&nbsp;&nbsp; </FONT></FONT><FONT color=#008000><FONT face="Courier New, Courier, mono">// flicker when switching tabs.<BR>&nbsp;&nbsp;&nbsp; </FONT></FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>cs</FONT>.<FONT color=#808080>x</FONT> = <BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>cs</FONT>.<FONT color=#808080>y</FONT> = 0;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>cs</FONT>.<FONT color=#808080>cx</FONT> = <BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>cs</FONT>.<FONT color=#808080>cy</FONT> = 32767;</FONT></P><P><FONT face="Courier New, Courier, mono"></FONT></P><P><FONT color=#008000><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp; // TODO: Modify the Window class or styles here by modifying<BR>&nbsp;&nbsp;&nbsp; </FONT></FONT><FONT color=#008000><FONT face="Courier New, Courier, mono">// the CREATESTRUCT cs<BR>&nbsp;&nbsp;&nbsp; </FONT></FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>if</FONT>( !<FONT color=#0000ff>CXTMDIChildWnd</FONT>::<FONT color=#880000>PreCreateWindow</FONT>(<FONT color=#808080>cs</FONT>) )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>return</FONT> <FONT color=#a000a0>FALSE</FONT>;<BR><BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>cs</FONT>.<FONT color=#808080>style</FONT> |= <FONT color=#a000a0>WS_CLIPCHILDREN</FONT>;<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>cs</FONT>.<FONT color=#808080>style</FONT> = <FONT color=#a000a0>WS_CHILD</FONT> | <FONT color=#a000a0>WS_OVERLAPPED</FONT> | <FONT color=#a000a0>WS_CAPTION </FONT>|&nbsp;<FONT color=#a000a0>WS_SYSMENU<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></FONT><FONT face="Courier New, Courier, mono">| <FONT color=#a000a0>FWS_ADDTOTITLE</FONT> | <FONT color=#a000a0>WS_THICKFRAME</FONT> | <FONT color=#a000a0>WS_MINIMIZEBOX </FONT>|&nbsp;<FONT color=#a000a0>WS_MAXIMIZEBOX</FONT>;</FONT></P><P><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; return</FONT> <FONT color=#a000a0>TRUE</FONT>;<BR></FONT><FONT face="Courier New, Courier, mono">}</FONT></P><FONT color=#0000ff><P><FONT face="Courier New, Courier, mono">void</FONT></FONT><FONT face="Courier New, Courier, mono"> <FONT color=#0000ff>CChildFrame</FONT>::<FONT color=#880000>ActivateFrame</FONT>(<FONT color=#0000ff>int</FONT> <FONT color=#808080>nCmdShow</FONT>)<BR></FONT><FONT face="Courier New, Courier, mono">{<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT color=#008000><FONT face="Courier New, Courier, mono">// first window should be maximized<BR>&nbsp;&nbsp;&nbsp; </FONT></FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>if</FONT> (<FONT color=#880000>GetParent</FONT>()-&gt;<FONT color=#880000>GetWindow</FONT>(<FONT color=#a000a0>GW_CHILD</FONT>) == <FONT color=#0000ff>this</FONT>)<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono">{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>nCmdShow</FONT> = <FONT color=#a000a0>SW_SHOWMAXIMIZED</FONT>;<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono">}</FONT></P><P><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; CXTMDIChildWnd</FONT>::<FONT color=#880000>ActivateFrame</FONT>(<FONT color=#808080>nCmdShow</FONT>);<BR></FONT><FONT face="Courier New, Courier, mono">}</FONT></P><FONT face="Courier New"><P>Let me know if this helps.<BR><BR>Kind regards,<BR>Codejock Support</P></FONT><span style="font-size:10px"><br /><br />Edited by Administrator</span>]]>
   </description>
   <pubDate>Tue, 28 Oct 2003 16:40:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=186&amp;PID=389&amp;title=tabbed-mdi-flicker#389</guid>
  </item> 
  <item>
   <title><![CDATA[Tabbed MDI flicker : I was running the demo MDITabDemo...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=186&amp;PID=375&amp;title=tabbed-mdi-flicker#375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=205">spiderM9</a><br /><strong>Subject:</strong> 186<br /><strong>Posted:</strong> 21 October 2003 at 5:34pm<br /><br /><P>I was running the demo MDITabDemo (also occurs on other demo programs that support the tabbed MDI style) and noticed that eery time a tab for an unexposed window is clicked, there is a very brief flicker where&nbsp;an MDI child window shows itself in the "Restored" state just prior to maximizing and showing in the "Tabbed" state.</P><P>I also noticed that the Tabbed MDI seems to be implemented by piggybacking on top of regular MDI, such that the child windows can be "Restored" to what is basically regular MDI mode with the tab bar serving as a mechanism to front windows.&nbsp; This is not the behavior of Tabbed MDI in Visual Studio.&nbsp; Is it possible to eliminate this feature (and along with it eliminating both the MDI child menu additions to the main frame menu) and will doing so eliminate the flicker, or would I need to implement my own Tabbed MDI (basically doing so in SDI mode I imagine)?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 21 Oct 2003 17:34:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=186&amp;PID=375&amp;title=tabbed-mdi-flicker#375</guid>
  </item> 
 </channel>
</rss>