<?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 save CXTPTabClientWnd state?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to save CXTPTabClientWnd state?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 11:40:59 +0000</pubDate>
  <lastBuildDate>Mon, 03 Apr 2006 07:42:54 +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=3864</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 save CXTPTabClientWnd state? : SaveState saves only positon og...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3864&amp;PID=11892&amp;title=how-to-save-cxtptabclientwnd-state#11892</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3864<br /><strong>Posted:</strong> 03 April 2006 at 7:42am<br /><br /><P>SaveState saves only positon og Tabs. Where is no way for CXTPTabClientWnd&nbsp; to save/restore actual window childs.</P><P>You must manually save childs and reopen in startup, CXTPTabClientWnd&nbsp; will automatically create tabs for them.</P><P>Hint code:</P><P>&nbsp;</P><P>void CMainFrame::OnClose() <BR>{</P><P>&nbsp;</P><P>&nbsp;&nbsp;CWnd* pMDIClient = CWnd::FromHandle(m_hWndMDIClient);<BR>&nbsp;&nbsp;CChildFrame* pWnd = (CChildFrame*) pMDIClient-&gt;GetDlgItem(nIndex);</P><P>&nbsp;&nbsp;while (pWnd)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CStylerView* pView = (CStylerView*)pWnd-&gt;GetActiveView();<BR>&nbsp;&nbsp;&nbsp;ASSERT(pView);&nbsp;&nbsp;&nbsp;</P><P>&nbsp;&nbsp;&nbsp;if (pView) strPopups += pView-&gt;GetDocument()-&gt;GetCurrentUrl() + ";";<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;pWnd = (CChildFrame*) pMDIClient-&gt;GetDlgItem(++nIndex);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;<BR> &nbsp;&nbsp;AfxGetApp()-&gt;WriteProfileString(_T("MainFrame "), _T("LastVisited"), strPopups);<BR>&nbsp;&nbsp;<BR>&nbsp;}</P><P>&nbsp;CMDIFrameWnd::OnClose();<BR>}<BR></P><P>&nbsp;</P><P>void CMainFrame::OpenLastVisited()<BR>{<BR>&nbsp;CString strBuffer = AfxGetApp()-&gt;GetProfileString(_T("MainFrame"), _T("LastVisited"));<BR>&nbsp;<BR>&nbsp;if (!strBuffer.IsEmpty())<BR>&nbsp;{<BR>&nbsp;&nbsp;LPTSTR pBuffer = strBuffer.GetBuffer(0);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;TCHAR* token = _tcstok(pBuffer, _T(";"));&nbsp;&nbsp;<BR>&nbsp;&nbsp;while (token)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;OpenWindow(token);<BR>&nbsp;&nbsp;&nbsp;token = _tcstok( NULL, _T(";"));<BR>&nbsp;&nbsp;}&nbsp;&nbsp;<BR>&nbsp;}&nbsp;<BR>}<BR></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 03 Apr 2006 07:42:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3864&amp;PID=11892&amp;title=how-to-save-cxtptabclientwnd-state#11892</guid>
  </item> 
  <item>
   <title><![CDATA[How to save CXTPTabClientWnd state? :  Help me please~ ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3864&amp;PID=11882&amp;title=how-to-save-cxtptabclientwnd-state#11882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1861">sion</a><br /><strong>Subject:</strong> 3864<br /><strong>Posted:</strong> 02 April 2006 at 12:16pm<br /><br /> <img border="0" src="http://forum.codejock.com/smileys/smiley19.gif" border="0"> <br />Help me please~]]>
   </description>
   <pubDate>Sun, 02 Apr 2006 12:16:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3864&amp;PID=11882&amp;title=how-to-save-cxtptabclientwnd-state#11882</guid>
  </item> 
  <item>
   <title><![CDATA[How to save CXTPTabClientWnd state? : HI~ When the application to be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3864&amp;PID=11699&amp;title=how-to-save-cxtptabclientwnd-state#11699</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1861">sion</a><br /><strong>Subject:</strong> 3864<br /><strong>Posted:</strong> 24 March 2006 at 11:10am<br /><br />HI~<br />When the application to be closed,How to save CXTPTabClientWnd state.<img src="uploads/si&#111;n/2006-03-24_110724_1.jpg.BMP" border="0"><br />CXTPTabClientWnd::SaveState()?<br /><br />]]>
   </description>
   <pubDate>Fri, 24 Mar 2006 11:10:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3864&amp;PID=11699&amp;title=how-to-save-cxtptabclientwnd-state#11699</guid>
  </item> 
 </channel>
</rss>