<?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 : Persistant Theme</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Persistant Theme]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 16:28:59 +0000</pubDate>
  <lastBuildDate>Wed, 28 Feb 2007 14:18:05 +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=6531</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[Persistant Theme : We have added code to our project...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6531&amp;PID=20818&amp;title=persistant-theme#20818</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=676">denczek</a><br /><strong>Subject:</strong> 6531<br /><strong>Posted:</strong> 28 February 2007 at 2:18pm<br /><br />We have added code to our project to use various themes based on the sample applications.&nbsp; <DIV>&nbsp;</DIV><DIV>When the application starts, we would like to be able to restore the theme last used by the user when the application was previously shut down.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>In order to save and restore the command bars (docking panes), we use the CXTPPropExchangeXMLNode class as such:</DIV><DIV>&nbsp;</DIV><DIV>To Load:&nbsp;<DIV>&nbsp;</DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;CXTPPropExchangeXMLNode px(TRUE, 0, _T("Settings"));&nbsp;&nbsp; // To serialize to XML file<BR>&nbsp;if(px.LoadFromFile(m_strIniFileName))<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPPropExchangeSection pxNormalLayout(px.GetSection(_T("NormalLayout")));<BR>&nbsp;&nbsp;ExchangeLayout(&amp;pxNormalLayout);</FONT></DIV><DIV><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp;m_pFullScreenLayout = DYNAMIC_DOWNCAST(CXTPPropExchangeXMLNode, px.GetSection(_T("FullScreenLayout")));<BR>&nbsp;&nbsp;ASSERT(m_pFullScreenLayout);<BR>&nbsp;}</FONT></DIV></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>To Save:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;CXTPPropExchangeXMLNode px(FALSE, 0, _T("Settings"));<BR>&nbsp;if (px.OnBeforeExchange()) <BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPPropExchangeSection pxNormalLayout(px.GetSection(_T("NormalLayout")));<BR>&nbsp;&nbsp;ExchangeLayout(&amp;pxNormalLayout);</DIV><DIV>&nbsp;&nbsp;px.PutSection(m_pFullScreenLayout);<BR>&nbsp;&nbsp;px.SaveToFile(m_strIniFileName);<BR>&nbsp;}</DIV>]]>
   </description>
   <pubDate>Wed, 28 Feb 2007 14:18:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6531&amp;PID=20818&amp;title=persistant-theme#20818</guid>
  </item> 
 </channel>
</rss>