<?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 : How to use CXTPTabClientWnd correctly!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to use CXTPTabClientWnd correctly!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 07:03:27 +0000</pubDate>
  <lastBuildDate>Mon, 27 Sep 2004 23:59: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=1204</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[How to use CXTPTabClientWnd correctly! : add  cs.x = cs.y = 0;cs.cx =...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3262&amp;title=how-to-use-cxtptabclientwnd-correctly#3262</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1204<br /><strong>Posted:</strong> 27 September 2004 at 11:59pm<br /><br /><P>add </P><P>cs.x = <BR>&nbsp;cs.y = 0;<BR>&nbsp;<BR>&nbsp;cs.cx = <BR>&nbsp;cs.cy = 32767;<BR></P><P>to PrecreateWindow</P>]]>
   </description>
   <pubDate>Mon, 27 Sep 2004 23:59:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3262&amp;title=how-to-use-cxtptabclientwnd-correctly#3262</guid>
  </item> 
  <item>
   <title><![CDATA[How to use CXTPTabClientWnd correctly! : In previous post, Oleg mentioned...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3257&amp;title=how-to-use-cxtptabclientwnd-correctly#3257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1204<br /><strong>Posted:</strong> 27 September 2004 at 11:20am<br /><br />In previous post, Oleg mentioned that the VS 7 sample used this:<br><br>&nbsp;&nbsp;&nbsp; VERIFY(m_MTIClientWnd.Attach(this, TRUE));<br><br>I see in your code that you are do this:<br>&nbsp;&nbsp;&nbsp; VERIFY(m_MTIClientWnd.Attach(this));<br><br>I tried both version in the VS 7 sample and removing "TRUE" produced results similar to the problem you are having.<br><br>Hope this help<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"><br>]]>
   </description>
   <pubDate>Mon, 27 Sep 2004 11:20:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3257&amp;title=how-to-use-cxtptabclientwnd-correctly#3257</guid>
  </item> 
  <item>
   <title><![CDATA[How to use CXTPTabClientWnd correctly! : Oleg ,It still cant&amp;#039;t work!I&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3255&amp;title=how-to-use-cxtptabclientwnd-correctly#3255</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=711">xred</a><br /><strong>Subject:</strong> 1204<br /><strong>Posted:</strong> 27 September 2004 at 5:00am<br /><br /><P><FONT color=#0000ff>Oleg ,It still cant't work!I'm in despair,I hit my keyboard, so my keyboard's space key has been broken yet!<BR>However I found out some examples include this function ,and it seems to work!But there is flicker none the less,<BR>and the flicker beacame lightly only!</FONT><BR>//////////////////////////////////////////////////////////// //////////////<BR>LRESULT CChildFrame::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) <BR>{<BR>&nbsp;if (message == WM_NCPAINT)<BR>&nbsp;{<BR>&nbsp;&nbsp;// prevent caption blinking<BR>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}&nbsp;<BR>&nbsp;return CMDIChildWnd::WindowProc(message, wParam, lParam);<BR>}<BR>//////////////////////////////////////////////////////////// //////////////</P><P><FONT color=#0000ff>I can't understand why GUI_VisualStudio7 didn't include any special line and It works so perfectly!<BR>Is there a method to solve this problem?</FONT></P><P>//////////////////////////////////////////////////////////// /////////////<BR><FONT color=#ff0000>In my program:</FONT><BR><FONT color=#00cc00><FONT color=#ff9933>CMainFrame:</FONT><BR></FONT>&nbsp;CXTPTabClientWnd m_MTIClientWnd;<BR>&nbsp;int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)<BR>&nbsp;{<BR>&nbsp;&nbsp;...<BR>&nbsp;&nbsp;VERIFY(m_MTIClientWnd.Attach(this));<BR>&nbsp;&nbsp;...<BR>&nbsp;}<BR><FONT color=#ff6600>CChildFrame:</FONT><BR>&nbsp;BOOL CChildFrame::PreCreateWindow(CREATESTRUCT&amp; cs)<BR>&nbsp;{<BR>&nbsp;&nbsp;if( !CMDIChildWnd::PreCreateWindow(cs) )<BR>&nbsp;&nbsp;&nbsp;return FALSE;</P><P>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}<BR>&nbsp;void CChildFrame::ActivateFrame(int nCmdShow)<BR>&nbsp;{</P><P>&nbsp;&nbsp;nCmdShow = SW_SHOWMAXIMIZED;<BR>&nbsp;&nbsp;CMDIChildWnd::ActivateFrame(nCmdShow);<BR>&nbsp;}<BR>&nbsp;LRESULT CChildFrame::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) <BR>&nbsp;{<BR>&nbsp;&nbsp;if (message == WM_NCPAINT)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;// prevent caption blinking<BR>&nbsp;&nbsp;&nbsp;return TRUE;<BR>&nbsp;&nbsp;}&nbsp;<BR>&nbsp;&nbsp;return CMDIChildWnd::WindowProc(message, wParam, lParam);<BR>&nbsp;}</P><P>Thank you again,Oleg!<IMG src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></P><span style="font-size:10px"><br /><br />Edited by xred</span>]]>
   </description>
   <pubDate>Mon, 27 Sep 2004 05:00:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3255&amp;title=how-to-use-cxtptabclientwnd-correctly#3255</guid>
  </item> 
  <item>
   <title><![CDATA[How to use CXTPTabClientWnd correctly! : Additional add void CChildFrame::ActivateFrame(int...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3250&amp;title=how-to-use-cxtptabclientwnd-correctly#3250</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1204<br /><strong>Posted:</strong> 26 September 2004 at 10:59am<br /><br /><P>&nbsp;Additional add</P><P>void CChildFrame::ActivateFrame(int nCmdShow) <BR>{<BR>&nbsp;// first window should be maximized<BR>&nbsp;if (GetParent()-&gt;GetWindow(GW_CHILD) == this)<BR>&nbsp;{<BR>&nbsp;&nbsp;nCmdShow = SW_SHOWMAXIMIZED;<BR>&nbsp;}<BR>&nbsp;<BR>&nbsp;CMDIChildWnd::ActivateFrame(nCmdShow);<BR>}</P><P>to make it Maximized by default.</P><P>&nbsp;</P><P>In&nbsp; GUI_Visualstudio7&nbsp; .Attach called with bEnableGroups = TRUE </P><P>VERIFY(m_MTIClientWnd.Attach(this, TRUE));</P><P><BR>&nbsp;</P>]]>
   </description>
   <pubDate>Sun, 26 Sep 2004 10:59:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3250&amp;title=how-to-use-cxtptabclientwnd-correctly#3250</guid>
  </item> 
  <item>
   <title><![CDATA[How to use CXTPTabClientWnd correctly! : Hi,Oleg I have to say that it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3248&amp;title=how-to-use-cxtptabclientwnd-correctly#3248</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=711">xred</a><br /><strong>Subject:</strong> 1204<br /><strong>Posted:</strong> 26 September 2004 at 5:29am<br /><br /><P>Hi,Oleg I have to say that it doesn't work!</P><P>However some examples such as GUI_Visualstudio7 don't include these lines&nbsp;,but  it works very well!</P><P>Why?</P><P><IMG src="http://forum.codejock.com/smileys/smiley19.gif" border="0"></P><span style="font-size:10px"><br /><br />Edited by xred</span>]]>
   </description>
   <pubDate>Sun, 26 Sep 2004 05:29:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3248&amp;title=how-to-use-cxtptabclientwnd-correctly#3248</guid>
  </item> 
  <item>
   <title><![CDATA[How to use CXTPTabClientWnd correctly! : You can create child like this: BOOL...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3245&amp;title=how-to-use-cxtptabclientwnd-correctly#3245</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1204<br /><strong>Posted:</strong> 25 September 2004 at 2:19pm<br /><br /><P>You can create child like this:</P><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 = <BR>&nbsp;cs.y = 0;<BR>&nbsp;<BR>&nbsp;cs.cx = <BR>&nbsp;cs.cy = 32767;<BR>&nbsp;<BR>&nbsp;// TODO: Modify the Window class or styles here by modifying<BR>&nbsp;//&nbsp; the CREATESTRUCT cs</P><P>&nbsp;if( !CMDIChildWnd::PreCreateWindow(cs) )<BR>&nbsp;&nbsp;return FALSE;</P><P>&nbsp;return TRUE;<BR>}</P>]]>
   </description>
   <pubDate>Sat, 25 Sep 2004 14:19:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3245&amp;title=how-to-use-cxtptabclientwnd-correctly#3245</guid>
  </item> 
  <item>
   <title><![CDATA[How to use CXTPTabClientWnd correctly! :  I found some exampleswork very...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3242&amp;title=how-to-use-cxtptabclientwnd-correctly#3242</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=711">xred</a><br /><strong>Subject:</strong> 1204<br /><strong>Posted:</strong> 25 September 2004 at 12:53am<br /><br /><P><IMG src="uploads/xred/2004-09-25_005038_error.jpg" border="0"></P><P><FONT color=#0000ff>I found&nbsp; some examples&nbsp;work very well,but my not!<IMG src="http://forum.codejock.com/smileys/smiley11.gif" border="0"></FONT></P><P>////////////////////////////<BR>&nbsp;<FONT color=#ff0000>CXTPTabClientWnd m_MTIClientWnd;</FONT><BR>///////////////////////////<BR>int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)<BR>{<BR>&nbsp;....</P><P>&nbsp;<FONT color=#ff0000>VERIFY(m_MTIClientWnd.Attach(this));</FONT><BR>&nbsp;<BR>&nbsp;....</P><P>}<BR>///////////////////////////</P><P>Thanks in advance!<IMG style="WIDTH: 114px; HEIGHT: 56px" height=17 src="http://forum.codejock.com/smileys/smiley31.gif" width=73 border="0"></P>]]>
   </description>
   <pubDate>Sat, 25 Sep 2004 00:53:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1204&amp;PID=3242&amp;title=how-to-use-cxtptabclientwnd-correctly#3242</guid>
  </item> 
 </channel>
</rss>