<?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 : the CXTPTabControl problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : the CXTPTabControl problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 10:27:54 +0000</pubDate>
  <lastBuildDate>Tue, 25 Nov 2008 09:00:44 +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=12793</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[the CXTPTabControl problem : my codes:  //////////////////...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12793&amp;PID=43185&amp;title=the-cxtptabcontrol-problem#43185</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4273">littleameng</a><br /><strong>Subject:</strong> 12793<br /><strong>Posted:</strong> 25 November 2008 at 9:00am<br /><br />my codes: <DIV><strong>////////////////////////////////////////////////////////</strong></DIV><DIV><strong>BOOL CSearchFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) </strong><BR>{<BR>...</DIV><DIV>...</DIV><DIV>&nbsp;if (!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CSearchOptionsView), CSize(270, 100), pContext) ||<BR>&nbsp;&nbsp;!m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CSearchContentView), CSize(0, 0), pContext))<BR>&nbsp;{<BR>&nbsp;&nbsp;m_wndSplitter1.DestroyWindow();<BR>&nbsp;&nbsp;m_wndSplitter2.DestroyWindow();<BR>&nbsp;&nbsp;return FALSE;<BR>&nbsp;}<BR>&nbsp;...</DIV><DIV>...</DIV><DIV>}</DIV><DIV>///////////////////////////////////////////////////////////////////////////</DIV><DIV>//</DIV><DIV><strong>class CSearchContentView : public CView</strong><BR>{</DIV><DIV>...</DIV><DIV>...</DIV><DIV>&nbsp;public:</DIV><DIV>CXTPTabControl m_wndTabControl;</DIV><DIV>...</DIV><DIV>...</DIV><DIV>}<BR></DIV><DIV>//////////////////////////////////////////////////////////////////////////</DIV><DIV><strong>int CSearchContentView::OnCreate(LPCREATESTRUCT lpCreateStruct) <BR></strong>{<BR>&nbsp;if (CView::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;return -1;<BR>&nbsp;<BR>&nbsp;// TODO: Add your specialized creation code here</DIV><DIV>&nbsp;m_wndTabControl.Create(WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, CRect(0, 0, 0, 0), this, IDC_SEARCHCONTENT_TAB);<BR>&nbsp;</DIV><DIV>&nbsp;m_wndTabControl.GetImageManager()-&gt;SetIcons(IDR_TOOLBAR_HOMEIEMENUBAR, NULL, 0, CSize(16, 16), xtpImageNormal);</DIV><DIV><BR>&nbsp;<BR>&nbsp;int lUnit=::GetSystemMetrics(SM_CYMENU);<BR>&nbsp;CSize szNormal(6*lUnit, lUnit), szMin(3*lUnit, lUnit), szMax(8*lUnit, lUnit);<BR>&nbsp;m_wndTabControl.SetItemMetrics(szNormal, szMin, szMax);</DIV><DIV>&nbsp;//Called to recalculate tab area and reposition components<BR>&nbsp;m_wndTabControl.Reposition();</DIV><DIV><BR>&nbsp;return 0;<BR>}<BR>//////////////////////////////////////////////////////////////////////////////////</DIV><DIV>when it is going to :</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;m_wndTabControl.Create(WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, CRect(0, 0, 0, 0), this, IDC_SEARCHCONTENT_TAB);<BR></DIV><DIV>the error happen, then display the follow&nbsp;window :</DIV><DIV><img src="http://forum.codejock.com/uploads/20081125_085525_a1.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I don't find the reason! </DIV><DIV>Please help me ! thanks!</DIV>]]>
   </description>
   <pubDate>Tue, 25 Nov 2008 09:00:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12793&amp;PID=43185&amp;title=the-cxtptabcontrol-problem#43185</guid>
  </item> 
 </channel>
</rss>