<?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 : Pane &amp; CXTFlatTabCtrl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Pane &amp; CXTFlatTabCtrl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 20:12:40 +0000</pubDate>
  <lastBuildDate>Fri, 21 Jan 2005 08:02:37 +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=1691</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[Pane &amp; CXTFlatTabCtrl : Hello,  Here is a sample (from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1691&amp;PID=4805&amp;title=pane-cxtflattabctrl#4805</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 1691<br /><strong>Posted:</strong> 21 January 2005 at 8:02am<br /><br />Hello,<br><br>Here is a sample (from MSDI)<br>Reproduce.<br>Start EXE. Look Pane1 Ok, Look Pane2 ok.<br>After Pane2 is visible, close App (PaneLayout will be saved)<br>Start EXE. Pane2 is visible. Now Select Menu 'Test' 'Select Pane1 Tab2'.<br>Now look into Pane1 and what do you see ?<br><br><a href="uploads/jimmy/2005-01-21_080001_Bug_FlatTabCtrl.zip" target="_blank">2005-01-21_080001_Bug_FlatTabCtrl.zip</a>]]>
   </description>
   <pubDate>Fri, 21 Jan 2005 08:02:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1691&amp;PID=4805&amp;title=pane-cxtflattabctrl#4805</guid>
  </item> 
  <item>
   <title><![CDATA[Pane &amp; CXTFlatTabCtrl : What is the simples way to put...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1691&amp;PID=4804&amp;title=pane-cxtflattabctrl#4804</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 1691<br /><strong>Posted:</strong> 21 January 2005 at 6:47am<br /><br />What is the simples way to put a CXTFlatTabCtrl with some Controls to a Pane.<br>Now i've a CWnd Containerand with this functions<br><br>class CTabbedPane : public CWnd<br>{<br>&nbsp;&nbsp;&nbsp; CXTFlatTabCtrl&nbsp; *m_pFlatTabCtrl;<br>&nbsp;&nbsp;&nbsp; ....<br>};<br><br>// CTabbedPane message handlers<br>int CTabbedPane::OnCreate(LPCREATESTRUCT lpCreateStruct) <br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; if (__super::OnCreate(lpCreateStruct) == -1)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br><br>&nbsp;&nbsp;&nbsp; m_pFlatTabCtrl = new CExFlatTabCtrl;<br>&nbsp;&nbsp;&nbsp; m_pFlatTabCtrl-&gt;SetFocusOnSetCurSel();<br>&nbsp;&nbsp;&nbsp; m_dwTabStyle = FTS_XT_BOTTOM | FTS_XT_HASARROWS | FTS_XT_HSCROLL | FTS_XT_TOOLTIPS;<br>&nbsp;&nbsp;&nbsp; // Create&nbsp; the flat tab control.<br>&nbsp;&nbsp;&nbsp; GetClientRect(m_rcTabs);<br>&nbsp;&nbsp;&nbsp; if  (!m_pFlatTabCtrl-&gt;Create(WS_CHILD|WS_VISIBLE|m_dwTabStyle , m_rcTabs, this, IDC_TABCONTROL))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE0( "Failed to create flattab control\n" );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; OnCreateChilds();<br><br>&nbsp;&nbsp;&nbsp; // Set the active view to the second tab.<br>&nbsp;&nbsp;&nbsp; m_pFlatTabCtrl-&gt;SetCurSel(0);<br><br>&nbsp;&nbsp;&nbsp; m_pFlatTabCtrl-&gt;SetWindowPos(&amp;wndTop, 0, 0, 0, 0, <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_FRAMECHANGED);<br><br>&nbsp;&nbsp;&nbsp; SetRedraw(TRUE);<br><br>&nbsp;&nbsp;&nbsp; RedrawWindow(0,0, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE | RDW_ALLCHILDREN);<br><br>&nbsp;&nbsp;&nbsp; OnCreateComplete();<br><br>&nbsp;&nbsp;&nbsp; return 0;<br>&nbsp;&nbsp;&nbsp; }<br><br>void CTabbedPane::AddItem(DWORD dwId, LPCTSTR lpText, CWnd *pWnd)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; m_pFlatTabCtrl-&gt;InsertItem(dwId, lpText, pWnd);<br>&nbsp;&nbsp;&nbsp; pWnd-&gt;SetWindowText(lpText);<br>&nbsp;&nbsp;&nbsp; m_WndList.push_back(pWnd);<br>&nbsp;&nbsp;&nbsp; }<br><br>void CTabbedPane::OnSize(UINT nType, int cx, int cy)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; __super::OnSize(nType, cx, cy);<br>&nbsp;&nbsp;&nbsp; if (m_pFlatTabCtrl &amp;&amp; ::IsWindow(m_pFlatTabCtrl-&gt;m_hWnd))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pFlatTabCtrl-&gt;SetWindowPos(NULL, 0,0,cx,cy, SWP_FRAMECHANGED);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>void CTabbedPane::OnSetFocus(CWnd* pOldWnd)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; int iIndex = m_pFlatTabCtrl-&gt;GetCurSel();<br>&nbsp;&nbsp;&nbsp; if (iIndex &gt;= 0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CWnd *pWnd = m_pFlatTabCtrl-&gt;GetItemWindow(iIndex);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pWnd)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pWnd-&gt;SetFocus();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>Now i've one problem with this.<br>i create this window with Size CRect(0,0,10,10), because i&nbsp; don't know the Pane size.<br>I've 2 CTabbedPane Control in 2 panes.<br>Pane 1 is visible, Pane 2 is not visible.<br>Now i select a Tab from Pane2.<br>GetPane2().GetFlatTabCtrl().SetCurSel( 3 );<br>If i make now Pane 2 visible. Tab Button's&amp; Tabs are not visible, because<br>some internal varibales, m_xGripperPos, m_nOffset have a negative value (-300). <br>Now i Create my window with CRect(0,0,600,100) and it work, but<br>i think this is a bug. OnShowWindow from CXtFlatTabCtrl it must be do new calc<br>(same as in OnSize i think ).<br><br>&nbsp;&nbsp;&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Fri, 21 Jan 2005 06:47:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1691&amp;PID=4804&amp;title=pane-cxtflattabctrl#4804</guid>
  </item> 
 </channel>
</rss>