<?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 : Code to move tabs in CXTPTabClientWnd?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Code to move tabs in CXTPTabClientWnd?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 05:48:19 +0000</pubDate>
  <lastBuildDate>Mon, 25 Apr 2005 02:48:41 +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=2050</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[Code to move tabs in CXTPTabClientWnd? : I am working under pressure and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6356&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1124">maxjock</a><br /><strong>Subject:</strong> 2050<br /><strong>Posted:</strong> 25 April 2005 at 2:48am<br /><br />I am working under pressure and I need to know when 9.70 will be released.<br><br>Thanks again.<br>]]>
   </description>
   <pubDate>Mon, 25 Apr 2005 02:48:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6356&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6356</guid>
  </item> 
  <item>
   <title><![CDATA[Code to move tabs in CXTPTabClientWnd? : Please, wait 9.70. We are preparing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6333&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6333</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2050<br /><strong>Posted:</strong> 21 April 2005 at 11:20pm<br /><br />Please, wait 9.70. We are preparing it now.]]>
   </description>
   <pubDate>Thu, 21 Apr 2005 23:20:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6333&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6333</guid>
  </item> 
  <item>
   <title><![CDATA[Code to move tabs in CXTPTabClientWnd? :  I use Xtreme Toolkit Pro v9.60...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6307&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6307</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1124">maxjock</a><br /><strong>Subject:</strong> 2050<br /><strong>Posted:</strong> 20 April 2005 at 7:33am<br /><br /><font style="font-family: verdana,arial,helvetica,sans-serif;" size="1"><br>I use Xtreme Toolkit Pro v9.60 - 30 days trial version to build a demoapplication so that my boss could take the decision to buy your library.<br><br>I need to do exactly what Ark42 want to do, but I don't have a licence (and the source code of the library).<br><br></font><font style="font-family: verdana,arial,helvetica,sans-serif;" size="1"><span style="color: rgb(0, 0, 0);">I tried OnWorkspaceCommand(</span><font color="#008000"><span style="color: rgb(0, 0, 0);">XTP_ID_WORKSAPCE_NEWVERTICAL); but it doesn't work.</span><br style="color: rgb(0, 0, 0);"><br></font></font><font style="font-family: verdana,arial,helvetica,sans-serif;" size="1">Ican not use a class like MyCXTPTabClientWndDerivedClass becauseACTION_ATTACH and ACTION_INSERTVERT are not defined and of courseDoWorkspaceCommand is private.<br><br>Tell me if there is any workaround.<br><br>Many thanks in advance.<br></font><br>]]>
   </description>
   <pubDate>Wed, 20 Apr 2005 07:33:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6307&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6307</guid>
  </item> 
  <item>
   <title><![CDATA[Code to move tabs in CXTPTabClientWnd? : Yes, we changed it to protected....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6108&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2050<br /><strong>Posted:</strong> 06 April 2005 at 4:56am<br /><br /><P>Yes, we changed it to protected. </P><P>Thank you!</P>]]>
   </description>
   <pubDate>Wed, 06 Apr 2005 04:56:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6108&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6108</guid>
  </item> 
  <item>
   <title><![CDATA[Code to move tabs in CXTPTabClientWnd? : Here are the functions I added...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6049&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6049</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 2050<br /><strong>Posted:</strong> 31 March 2005 at 6:12pm<br /><br />Here are the functions I added to my derived class that I felt were useful for programmatically moving windows around in the workspaces:<br>I did have to put DoWorkspaceCommand() as protected instead of private so that I could use it.<br><br>int MyCXTPTabClientWndDerivedClass::GetActiveWorkspace(void)<br>{<br>&nbsp;&nbsp;&nbsp; return GetWndWorkspace(MDIGetActive());<br>}<br><br>int MyCXTPTabClientWndDerivedClass::GetWndWorkspace(CWnd *pWnd)<br>{<br>&nbsp;&nbsp;&nbsp; if( !pWnd ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; CXTPTabManagerItem* pItem = FindItem(pWnd-&gt;m_hWnd);<br>&nbsp;&nbsp;&nbsp; if( !pItem ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return FindIndex(pItem-&gt;GetTabManager());<br>}<br><br>void MyCXTPTabClientWndDerivedClass::MoveWndToWorkspace(CWnd *pWnd, int nNum)<br>{<br>&nbsp;&nbsp;&nbsp; CXTPTabManagerItem *pItem = FindItem(pWnd-&gt;GetSafeHwnd());<br><br>&nbsp;&nbsp;&nbsp; if( pItem != NULL ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int nCount = GetWorkspaceCount();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( nNum &lt; nCount ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CWorkspace *pDest = GetWorkspace(nNum);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( pDest != pItem-&gt;GetTabManager() ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DoWorkspaceCommand(pItem, pDest, ACTION_ATTACH);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DoWorkspaceCommand(pItem, GetWorkspace(nCount - 1), ACTION_INSERTVERT);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>void MyCXTPTabClientWndDerivedClass::EnsureTabVisible(CWnd *pWnd)<br>{<br>&nbsp;&nbsp;&nbsp; CXTPTabManagerItem *pItem = FindItem(pWnd-&gt;GetSafeHwnd());<br><br>&nbsp;&nbsp;&nbsp; if( pItem != NULL ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItem-&gt;GetTabManager()-&gt;EnsureVisible(pItem);<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br><font style="color: rgb(51, 51, 51);" size="2">Do you think DoWorkspaceCommand() could become protected instead in the next release so I can continue to use these functions?</font><br><br>]]>
   </description>
   <pubDate>Thu, 31 Mar 2005 18:12:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6049&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6049</guid>
  </item> 
  <item>
   <title><![CDATA[Code to move tabs in CXTPTabClientWnd? : Yes but MOVEPREVIOUS/MOVENEXT...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6016&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6016</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 2050<br /><strong>Posted:</strong> 30 March 2005 at 10:41am<br /><br /><br>Yes but MOVEPREVIOUS/MOVENEXT don't help when I need to move to a specific workspace.<br><br>Also, NEWVERTICAL and many other MTI related stuff doesn't work if I wrap my code with:<br>::SendMessage(m_hWndMDIClient, WM_SETREDRAW, FALSE, 0);<br>//create and/or move child windows and/or workspaces<br>::SendMessage(m_hWndMDIClient, WM_SETREDRAW, TRUE, 0);<br>::RedrawWindow(m_hWndMDIClient, NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE | RDW_ALLCHILDREN | RDW_FRAME);<br><br>In order to prevent flickering.<br><br>]]>
   </description>
   <pubDate>Wed, 30 Mar 2005 10:41:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6016&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6016</guid>
  </item> 
  <item>
   <title><![CDATA[Code to move tabs in CXTPTabClientWnd? : Did you tried  OnWorkspaceCommand?  try...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6014&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2050<br /><strong>Posted:</strong> 30 March 2005 at 8:30am<br /><br />Did you tried <FONT size=2><P>OnWorkspaceCommand?</P><P>&nbsp;</P><P>try <FONT size=2></P><P>OnWorkspaceCommand(<FONT color=#008000 size=2>XTP_ID_WORKSAPCE_NEWVERTICAL);</FONT></P><FONT color=#008000 size=2><FONT color=#008000 size=2><P>OnWorkspaceCommand(XTP_ID_WORKSAPCE_MOVEPREVIOUS);</P></FONT></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Wed, 30 Mar 2005 08:30:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6014&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6014</guid>
  </item> 
  <item>
   <title><![CDATA[Code to move tabs in CXTPTabClientWnd? :  Is it possible to move tabs...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6010&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6010</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 2050<br /><strong>Posted:</strong> 30 March 2005 at 12:26am<br /><br /><br>Is it possible to move tabs and create new workspaces with CXTPTabClientWnd (groups are enabled) using just code?<br><br>I want to create two child windows (maybe, they could exist already) and put them in two different tab group workspaces. I need to create workspaces if there is less than two, and put the two newly created windows into the last two tab groups (if the user has created more than two of them).<br><br>I can't seem to see a way. I am trying to derive from CXTPTabClientWnd but many things are private such as DoWorkspaceCommand()<span style="font-size:10px"><br /><br />Edited by Ark42</span>]]>
   </description>
   <pubDate>Wed, 30 Mar 2005 00:26:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2050&amp;PID=6010&amp;title=code-to-move-tabs-in-cxtptabclientwnd#6010</guid>
  </item> 
 </channel>
</rss>