<?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 : Docking Pane&#146;s Layout Serializati&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Docking Pane&#146;s Layout Serializati&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 03:35:52 +0000</pubDate>
  <lastBuildDate>Thu, 23 Sep 2004 04:32:10 +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=1194</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[Docking Pane&#146;s Layout Serializati&#111;n : No. You can serialize your version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1194&amp;PID=3224&amp;title=docking-panes-layout-serialization#3224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1194<br /><strong>Posted:</strong> 23 September 2004 at 4:32am<br /><br /><P>No.&nbsp;</P><P>You can serialize your version version &nbsp;to archive and check it before restore layout. </P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 23 Sep 2004 04:32:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1194&amp;PID=3224&amp;title=docking-panes-layout-serialization#3224</guid>
  </item> 
  <item>
   <title><![CDATA[Docking Pane&#146;s Layout Serializati&#111;n : Thanks, It worked ! There is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1194&amp;PID=3223&amp;title=docking-panes-layout-serialization#3223</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=735">singulus</a><br /><strong>Subject:</strong> 1194<br /><strong>Posted:</strong> 23 September 2004 at 3:56am<br /><br /><P><FONT size=3>Thanks, It worked !<IMG src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></FONT></P><P><FONT size=3>There is one more thing about the serialization problem. I need to support serialization&nbsp;versions. There is a problem&nbsp;when the a future version contains more docking panes than the current one. If&nbsp;I deserialize the old version the new version's docking panes won't be created but&nbsp;they should be available since the new version of the product&nbsp;requires them! Is there a way to "merge" the two layouts so the result contains the union of all docking panes?</FONT></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 23 Sep 2004 03:56:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1194&amp;PID=3223&amp;title=docking-panes-layout-serialization#3223</guid>
  </item> 
  <item>
   <title><![CDATA[Docking Pane&#146;s Layout Serializati&#111;n : Sorry you only can store it to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1194&amp;PID=3198&amp;title=docking-panes-layout-serialization#3198</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1194<br /><strong>Posted:</strong> 21 September 2004 at 7:17am<br /><br /><P>Sorry you only can store it to XML node, then to string, then to archive.</P><P>BSTR CDockingPaneCtrl::OleSaveStateToString()<BR>{</P><P>&nbsp;MSXML::IXMLDOMDocumentPtr xmlDocPtr = 0;<BR>&nbsp;MSXML::IXMLDOMElementPtr xmlRootPtr = 0;</P><P> &nbsp;VERIFY(SUCCEEDED(xmlDocPtr.CreateInstance(MSXML::CLSID _DOMDocument)));</P><P>&nbsp;xmlDocPtr-&gt;createElement(_bstr_t(_T("Layout")), &amp;xmlRootPtr);<BR>&nbsp;xmlDocPtr-&gt;appendChild(xmlRootPtr, NULL);<BR>&nbsp;<BR>&nbsp;if (xmlRootPtr == 0)<BR>&nbsp;&nbsp;return FALSE;</P><P><BR>&nbsp;CXTPDockingPaneLayout layout(GetDockingPaneManager());<BR>&nbsp;GetDockingPaneManager()-&gt;GetLayout(&amp;layout);</P><P>&nbsp;layout.SaveToNode(xmlDocPtr, xmlRootPtr, _T("Common"));</P><P>&nbsp;BSTR bstrString = NULL;<BR>&nbsp;xmlRootPtr-&gt;get_xml(&amp;bstrString);</P><P>&nbsp;return bstrString;<BR>}<BR>void CDockingPaneCtrl::OleLoadStateFromString(LPCTSTR lpNode)<BR>{</P><P>&nbsp;MSXML::IXMLDOMDocumentPtr xmlDocPtr = 0;<BR>&nbsp;MSXML::IXMLDOMElementPtr xmlRootPtr = 0;</P><P> &nbsp;VERIFY(SUCCEEDED(xmlDocPtr.CreateInstance(MSXML::CLSID _DOMDocument)));<BR>&nbsp;<BR>&nbsp;VARIANT_BOOL bResult;<BR>&nbsp;HRESULT hr = xmlDocPtr-&gt;loadXML(_bstr_t(lpNode), &amp;bResult);<BR>&nbsp;if (SUCCEEDED(hr) &amp;&amp; bResult == VARIANT_TRUE)<BR>&nbsp;{&nbsp;<BR> &nbsp;&nbsp;xmlDocPtr-&gt;get_documentElement(&amp;xmlRootPt r);<BR>&nbsp;&nbsp;if (xmlRootPtr == 0)<BR>&nbsp;&nbsp;&nbsp;return;</P><P>&nbsp;&nbsp;BSTR bstrRootName = 0;<BR>&nbsp;&nbsp;if( FAILED(xmlRootPtr-&gt;get_nodeName(&amp;bstrRootName))<BR>&nbsp;&nbsp;&nbsp;|| _bstr_t(_T("Layout")) != _bstr_t(bstrRootName))<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if (bstrRootName) SysFreeString(bstrRootName);<BR>&nbsp;&nbsp;&nbsp;return;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;if (bstrRootName) SysFreeString(bstrRootName);</P><P><BR>&nbsp;&nbsp;CXTPDockingPaneLayout layout(GetDockingPaneManager());</P><P>&nbsp;&nbsp;if (layout.LoadFromNode(xmlDocPtr, xmlRootPtr, _T("Common")))<BR>&nbsp;&nbsp;{<BR> &nbsp;&nbsp;&nbsp;GetDockingPaneManager()-&gt;SetLayout(&amp ;layout);<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>}</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 21 Sep 2004 07:17:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1194&amp;PID=3198&amp;title=docking-panes-layout-serialization#3198</guid>
  </item> 
  <item>
   <title><![CDATA[Docking Pane&#146;s Layout Serializati&#111;n : Hello,  I need to serialize the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1194&amp;PID=3189&amp;title=docking-panes-layout-serialization#3189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=735">singulus</a><br /><strong>Subject:</strong> 1194<br /><strong>Posted:</strong> 21 September 2004 at 5:01am<br /><br /><P><FONT size=3>Hello,</FONT></P><P><FONT size=3>&nbsp;&nbsp;&nbsp;&nbsp; I need to serialize the docking pane's layout </FONT><FONT size=3>into a CArchive object (e.g. I need&nbsp;to use the classic MFC way of data serialization). However I could not find a way to do this with the support of the XTP Toolkit. I noticed that the layout can&nbsp;only be stored in the system registry. Is there any&nbsp;approach to store the layout in&nbsp;a CArchive?&nbsp;It is really important&nbsp;to serialize the layout this way!</FONT></P><P><FONT size=3>&nbsp; Thanks to&nbsp;you all :)</FONT></P>]]>
   </description>
   <pubDate>Tue, 21 Sep 2004 05:01:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1194&amp;PID=3189&amp;title=docking-panes-layout-serialization#3189</guid>
  </item> 
 </channel>
</rss>