<?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 : SDI and Tab Manager</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : SDI and Tab Manager]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 10 Apr 2026 17:36:10 +0000</pubDate>
  <lastBuildDate>Wed, 05 May 2004 10:50: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=659</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[SDI and Tab Manager : Only singleline now. Maybe in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1823&amp;title=sdi-and-tab-manager#1823</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 659<br /><strong>Posted:</strong> 05 May 2004 at 10:50am<br /><br />Only singleline now. Maybe in th future we will&nbsp;add multiline mode too. <span style="font-size:10px"><br /><br />Edited by oleg</span>]]>
   </description>
   <pubDate>Wed, 05 May 2004 10:50:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1823&amp;title=sdi-and-tab-manager#1823</guid>
  </item> 
  <item>
   <title><![CDATA[SDI and Tab Manager : Hello, CXTPTabControl looks great,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1820&amp;title=sdi-and-tab-manager#1820</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=201">Karnize</a><br /><strong>Subject:</strong> 659<br /><strong>Posted:</strong> 05 May 2004 at 2:33am<br /><br /><P>Hello,</P><P>CXTPTabControl looks great, but I have one question. Does it support multiline tabs or only singleline? I was not able to see it in samples.</P>]]>
   </description>
   <pubDate>Wed, 05 May 2004 02:33:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1820&amp;title=sdi-and-tab-manager#1820</guid>
  </item> 
  <item>
   <title><![CDATA[SDI and Tab Manager : Hey here is something that would...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1806&amp;title=sdi-and-tab-manager#1806</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=245">ddyer</a><br /><strong>Subject:</strong> 659<br /><strong>Posted:</strong> 03 May 2004 at 12:21pm<br /><br /><P><FONT face="Arial, Helvetica, sans-serif" size=2>Hey here is something that would be great if anyone is up to it:&nbsp; Using the existing CXTTabControl inside a basic CView (as shown above), anyone think they can bring to life the Tab Group features demonstrated by CXTPTabClientWnd and shown in the TabManager sample application?</FONT></P><P><FONT face="Arial, Helvetica, sans-serif"><FONT size=2>The group feature Im refering too is what allows you to create horizontal and vertical tab collections.&nbsp; To see it in vc++, open a few source files and right-mouse-click on one of their tabs to see "New Tab XXX Group").&nbsp; To see it in the TabManager sample demo,&nbsp;create&nbsp;a few tabbed docs, then drag a tab to the center <FONT face="Arial, Helvetica, sans-serif">of the doc area... you should be presented with the New Tab XXX Group menu.</FONT></FONT></FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=2>It looks like there is a lot of maintenance code for this ready to go, its just a matter of taking the TabClientWnd class and replacing it with one that is more SDI-centric.&nbsp;</FONT></P>]]>
   </description>
   <pubDate>Mon, 03 May 2004 12:21:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1806&amp;title=sdi-and-tab-manager#1806</guid>
  </item> 
  <item>
   <title><![CDATA[SDI and Tab Manager : Thanks! This tabcontrol is significantly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1805&amp;title=sdi-and-tab-manager#1805</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=245">ddyer</a><br /><strong>Subject:</strong> 659<br /><strong>Posted:</strong> 03 May 2004 at 8:14am<br /><br /><P>Thanks!&nbsp; This tabcontrol is significantly better than cxttabview.... users can drag-rearrange the tabs.&nbsp; Hopefully today Ill finish moving over all the features I had in my old cxttabview subclass.</P>]]>
   </description>
   <pubDate>Mon, 03 May 2004 08:14:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1805&amp;title=sdi-and-tab-manager#1805</guid>
  </item> 
  <item>
   <title><![CDATA[SDI and Tab Manager : Use the WS_CLIPCHILDREN window...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1804&amp;title=sdi-and-tab-manager#1804</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=443">ipaqlinux48</a><br /><strong>Subject:</strong> 659<br /><strong>Posted:</strong> 03 May 2004 at 8:03am<br /><br /><P>Use the WS_CLIPCHILDREN window style for your tab control.</P>]]>
   </description>
   <pubDate>Mon, 03 May 2004 08:03:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1804&amp;title=sdi-and-tab-manager#1804</guid>
  </item> 
  <item>
   <title><![CDATA[SDI and Tab Manager : LOL thanks guys... sometimes you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1803&amp;title=sdi-and-tab-manager#1803</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=245">ddyer</a><br /><strong>Subject:</strong> 659<br /><strong>Posted:</strong> 03 May 2004 at 7:50am<br /><br /><P>LOL thanks guys... sometimes you can't see the forest for the trees.&nbsp; Hey, maybe I WANTED an invisible tab, ever think of that? <IMG src="http://forum.codejock.com/smileys/smiley36.gif" border="0">&nbsp; Also, my onsize method was calling tabCtrl.OnSize() rather than the much more obvious MoveWindow.&nbsp; Thanks!</P><P>BTW, if you replace CMyApplicationView with a&nbsp;CXTListView&nbsp;for the sake of discussion,&nbsp; and assume you have a few tabs created,&nbsp;anyone notice the listview flickers like mad whenever the tabs are clicked or the window is resized?&nbsp;&nbsp; The tabs themselves do not flicker, so I don't think its the creation of the tabCtrl member.</P><P>How do you get rid of this flickering?&nbsp; </P><P>Thanks<BR>Doug</P>]]>
   </description>
   <pubDate>Mon, 03 May 2004 07:50:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1803&amp;title=sdi-and-tab-manager#1803</guid>
  </item> 
  <item>
   <title><![CDATA[SDI and Tab Manager : Hi Doug, I tried your code, too....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1795&amp;title=sdi-and-tab-manager#1795</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=330">naggerman</a><br /><strong>Subject:</strong> 659<br /><strong>Posted:</strong> 02 May 2004 at 10:04am<br /><br /><P>Hi Doug,</P><P>I tried your code, too. It works after adding the OnSize handling and adding WS_VISIBLE and WS_CHILD flags to the m_tabCtrl.Create. Your code was creating an invisible tab control.</P><P>Regards,</P><P>Henrik</P>]]>
   </description>
   <pubDate>Sun, 02 May 2004 10:04:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1795&amp;title=sdi-and-tab-manager#1795</guid>
  </item> 
  <item>
   <title><![CDATA[SDI and Tab Manager : You forget the OnSize message...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1787&amp;title=sdi-and-tab-manager#1787</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=443">ipaqlinux48</a><br /><strong>Subject:</strong> 659<br /><strong>Posted:</strong> 01 May 2004 at 1:30am<br /><br /><P>You forget the OnSize message handler. You should have something like this so that m_tabCtrl occupies the complete parent window:</P><P>// Resize the list control contained in the view to<BR>// fill the entire view when the view's window is<BR>// resized. CMyView is a CView derived class.<BR>void CMyMainView::OnSize(UINT nType, int cx, int cy) <BR>{<BR>&nbsp;&nbsp; CView::OnSize(nType, cx, cy);<BR>&nbsp;&nbsp; // Resize&nbsp;tab control&nbsp;to fill the whole view.<BR>&nbsp;&nbsp; m_tabCtrl.MoveWindow (0, 0, cx, cy);<BR>}</P><P>I hope this solves your problem.</P><P>Oh by the way, just remove the WS_CLIPCHILDREN window style for your view. Otherwise the screen will flicker as soon as your view is resized.</P>]]>
   </description>
   <pubDate>Sat, 01 May 2004 01:30:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1787&amp;title=sdi-and-tab-manager#1787</guid>
  </item> 
  <item>
   <title><![CDATA[SDI and Tab Manager : How would one then use CXTPTabControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1779&amp;title=sdi-and-tab-manager#1779</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=245">ddyer</a><br /><strong>Subject:</strong> 659<br /><strong>Posted:</strong> 30 April 2004 at 11:02am<br /><br /><P>How would one then use CXTPTabControl to manage views?&nbsp; I have a simple generated CView from an SDI app and it has one member variable, m_tabCtrl (an XTPTabControl).</P><P>I call m_tabCtrl's Create in the view's OnCreate method.&nbsp; The OnCreate, &nbsp;AddATab and CreateView methods shown below try to add one of my app's views to the tabCtrl.<BR><BR>Nothing seems to work right.&nbsp; Im not sure if I need to do something with my view's OnSize or OnPaint or OnDraw, but I just can't get this to work.&nbsp; I've tried various onsize, onpaint, ondraw tests but haven't gotten anywhere really.&nbsp; <BR><BR>Oleg, I know you are a busy guy, but do you have any thoughts on this?</P><P>Regards,<BR>Doug</P><FONT face="Courier New, Courier, mono" color=#008000 size=1><P> //////////////////////////////////////////////////////////// //////////////<BR></FONT><FONT color=#0000ff><FONT face="Courier New, Courier, mono" size=1>int</FONT></FONT><FONT face="Courier New, Courier, mono" size=1> CMyMainView::OnCreate(LPCREATESTRUCT lpCreateStruct) <BR></FONT><FONT face="Courier New, Courier, mono" size=1>{<BR></FONT><FONT size=1><FONT face="Courier New, Courier, mono" color=#0000ff>&nbsp;if</FONT><FONT face="Courier New, Courier, mono"> (CView::OnCreate(lpCreateStruct) == -1)<BR></FONT></FONT><FONT size=1><FONT face="Courier New, Courier, mono" color=#0000ff>&nbsp; return</FONT><FONT face="Courier New, Courier, mono"> -1;<BR><BR></FONT></FONT><FONT size=1><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>&nbsp;if</FONT> (m_tabCtrl.Create(NULL, NULL, 0, CRect(0,0,0,0), <FONT color=#0000ff>this</FONT></FONT><FONT face="Courier New, Courier, mono">, 0, NULL) == FALSE)<BR></FONT></FONT><FONT face="Courier New, Courier, mono"><FONT size=1><FONT color=#0000ff>&nbsp; return</FONT> -1;<BR><BR>&nbsp; return 0;<BR></FONT></FONT><FONT face="Courier New, Courier, mono" size=1>}</FONT></P><FONT color=#008000 size=2><P><FONT face="Courier New, Courier, mono" size=1> //////////////////////////////////////////////////////////// //////////////</FONT></FONT><BR><FONT face="Courier New, Courier, mono" size=1>void CMyMainView::AddATab(void)<BR>{<BR></FONT><FONT face="Courier New, Courier, mono" size=1><FONT size=2><FONT face="Courier New, Courier, mono" size=1>&nbsp;frame = CreateView(RUNTIME_CLASS(CMyApplicationView), GetDocument());<BR><BR></FONT><FONT face="Courier New, Courier, mono" size=1>&nbsp;CXTPTabManagerItem *mi = <BR>&nbsp; m_tabCtrl.InsertItem(m_tabCtrl.GetItemCount(), title, <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; frame-&gt;GetSafeHwnd(), 0);<BR></FONT><FONT face="Courier New, Courier, mono" size=1>&nbsp;frame-&gt;SendMessage(WM_INITIALUPDATE);<BR></FONT><FONT face="Courier New, Courier, mono" size=1>&nbsp;m_tabCtrl.SetSelectedItem(mi);<BR></FONT></FONT>}</FONT></P><FONT face="Courier New, Courier, mono" color=#008000><P><FONT size=1><FONT face="Courier New, Courier, mono"> //////////////////////////////////////////////////////////// //////////////</FONT><BR></FONT></FONT><FONT face="Courier New, Courier, mono" size=1>CFrameWnd* CMyMainView::CreateView(CRuntimeClass *type, CDocument *doc)<BR></FONT><FONT size=1><FONT face="Courier New, Courier, mono">{<BR></FONT><FONT face="Courier New, Courier, mono">&nbsp;CFrameWnd *pFrame = </FONT><FONT face="Courier New, Courier, mono" color=#0000ff>new</FONT></FONT><FONT face="Courier New, Courier, mono" size=1> CFrameWnd;<BR></FONT><FONT size=1><FONT face="Courier New, Courier, mono">&nbsp;CCreateContext context;<BR></FONT><FONT face="Courier New, Courier, mono">&nbsp;::ZeroMemory(&amp;context, </FONT><FONT face="Courier New, Courier, mono" color=#0000ff>sizeof</FONT></FONT><FONT face="Courier New, Courier, mono" size=1>(context));<BR></FONT><FONT face="Courier New, Courier, mono" size=1>&nbsp;context.m_pNewViewClass = type;<BR></FONT><FONT size=1><FONT face="Courier New, Courier, mono">&nbsp;context.m_pCurrentDoc = doc;<BR></FONT><FONT face="Courier New, Courier, mono">&nbsp;context.m_pCurrentFrame = m_tabCtrl.GetParentFrame();</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=1>&nbsp;pFrame-&gt;Create(NULL, NULL, <BR>&nbsp; </FONT><FONT face="Courier New, Courier, mono" size=1>WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, CRect(0, 0, 0, 0), <BR></FONT><FONT face="Courier New, Courier, mono" size=1>&nbsp; &amp;m_tabCtrl, NULL, 0, &amp;context);</FONT></P><P><FONT size=1><FONT face="Courier New, Courier, mono" color=#0000ff>&nbsp;if</FONT><FONT face="Courier New, Courier, mono"> (pFrame-&gt;GetSafeHwnd()) {<BR></FONT></FONT><FONT face="Courier New, Courier, mono" size=1>&nbsp; pFrame-&gt;ModifyStyleEx(WS_EX_CLIENTEDGE, 0, SWP_FRAMECHANGED);<BR></FONT><FONT face="Courier New, Courier, mono" size=1>&nbsp;  pFrame-&gt;GetWindow(GW_CHILD)-&gt;ModifyStyleEx(WS_EX_CLIEN TEDGE, 0,&nbsp;&nbsp; <BR>&nbsp; SWP_FRAMECHANGED);<BR></FONT><FONT face="Courier New, Courier, mono" size=1>&nbsp;}<BR></FONT><FONT face="Courier New, Courier, mono" size=1><BR> &nbsp;pFrame-&gt;SetActiveView((CView*)pFrame-&gt;GetWindow( GW_CHILD));<BR></FONT><FONT size=1><FONT face="Courier New, Courier, mono" color=#0000ff>&nbsp;return</FONT><FONT face="Courier New, Courier, mono"> pFrame;<BR></FONT></FONT><FONT face="Courier New, Courier, mono" size=1>}</FONT><FONT size=2></P></FONT>]]>
   </description>
   <pubDate>Fri, 30 Apr 2004 11:02:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1779&amp;title=sdi-and-tab-manager#1779</guid>
  </item> 
  <item>
   <title><![CDATA[SDI and Tab Manager : CXTPTabClientWnd can be used only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1776&amp;title=sdi-and-tab-manager#1776</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 659<br /><strong>Posted:</strong> 30 April 2004 at 12:32am<br /><br /><FONT face=Arial size=2>CXTPTabClientWnd&nbsp; can be used only for MDI frame.</FONT>]]>
   </description>
   <pubDate>Fri, 30 Apr 2004 00:32:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=659&amp;PID=1776&amp;title=sdi-and-tab-manager#1776</guid>
  </item> 
 </channel>
</rss>