<?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 : Resetting layout</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Resetting layout]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 08:12:45 +0000</pubDate>
  <lastBuildDate>Tue, 22 Mar 2005 05:49:31 +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=1992</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[Resetting layout :   oleg wrote: Another option...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5864&amp;title=resetting-layout#5864</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 1992<br /><strong>Posted:</strong> 22 March 2005 at 5:49am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><P>Another option is to create member CreateLayout and move all calls there.</P><P>to reset just </P><P>m_paneManager.DestroyAll();</P><P>CreateLayout ();</P><P>&nbsp;</P><P></td></tr></table> </P><P>And the CreateLayout() would contain the code that's normally there to create the docking panes and such?</P>]]>
   </description>
   <pubDate>Tue, 22 Mar 2005 05:49:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5864&amp;title=resetting-layout#5864</guid>
  </item> 
  <item>
   <title><![CDATA[Resetting layout : Another option is to create member...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5861&amp;title=resetting-layout#5861</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1992<br /><strong>Posted:</strong> 22 March 2005 at 5:44am<br /><br /><P>Another option is to create member CreateLayout and move all calls there.</P><P>to reset just </P><P>m_paneManager.DestroyAll();</P><P>CreateLayout ();</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 22 Mar 2005 05:44:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5861&amp;title=resetting-layout#5861</guid>
  </item> 
  <item>
   <title><![CDATA[Resetting layout : Hmm, there&amp;#039;s still a problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5855&amp;title=resetting-layout#5855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 1992<br /><strong>Posted:</strong> 22 March 2005 at 4:17am<br /><br /><P>Hmm, there's still a problem - it now works fine in the sense that it does restore the layouts of the main MDIFrame and all MDIChildFrames (I have a separate pane manager in each child frame, so I save/load layouts for each of them), but it now screws up the insides of the docking panes that I have inside those child frames. Am I still missing something, or..., do you have docking panes in your frames?</P><P>&nbsp;</P><P>Thanks.</P>]]>
   </description>
   <pubDate>Tue, 22 Mar 2005 04:17:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5855&amp;title=resetting-layout#5855</guid>
  </item> 
  <item>
   <title><![CDATA[Resetting layout :   jimmy wrote:Hi,In there registry...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5839&amp;title=resetting-layout#5839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 1992<br /><strong>Posted:</strong> 21 March 2005 at 6:27am<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jimmy" alt="Originally posted by jimmy" style="vertical-align: text-bottom;" /> <strong>jimmy wrote:</strong><br /><br />Hi,<BR><BR>In there registry there is only saved one copy of layout settings.<BR>I create the pane to a default setting. Save this to a member variable.<BR>And then load the panesettings from registry to another member variable.<BR>In the registry there is only saved the current pane layout. And not the default.<BR><BR>&nbsp;&nbsp;&nbsp; Jimmy<BR></td></tr></table> </P><P>Ah, ok I understand now! <IMG src="http://forum.codejock.com/smileys/smiley4.gif" border="0">&nbsp;Before doing a Load() of the layout from the registry, you store the default one as a local variable. Yes, that could work (going to go give it a try now) - thanks! <IMG src="http://forum.codejock.com/smileys/smiley32.gif" border="0"></P>]]>
   </description>
   <pubDate>Mon, 21 Mar 2005 06:27:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5839&amp;title=resetting-layout#5839</guid>
  </item> 
  <item>
   <title><![CDATA[Resetting layout : Hi,  In there registry there...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5838&amp;title=resetting-layout#5838</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 1992<br /><strong>Posted:</strong> 21 March 2005 at 6:22am<br /><br />Hi,<br><br>In there registry there is only saved one copy of layout settings.<br>I create the pane to a default setting. Save this to a member variable.<br>And then load the panesettings from registry to another member variable.<br>In the registry there is only saved the current pane layout. And not the default.<br><br>&nbsp;&nbsp;&nbsp; Jimmy<br>]]>
   </description>
   <pubDate>Mon, 21 Mar 2005 06:22:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5838&amp;title=resetting-layout#5838</guid>
  </item> 
  <item>
   <title><![CDATA[Resetting layout :   jimmy wrote:Hi,After create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5836&amp;title=resetting-layout#5836</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 1992<br /><strong>Posted:</strong> 21 March 2005 at 4:54am<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jimmy" alt="Originally posted by jimmy" style="vertical-align: text-bottom;" /> <strong>jimmy wrote:</strong><br /><br />Hi,<BR><BR>After create all pane, i create a new Layout and save the current settings to this layout.<BR>&nbsp;&nbsp;&nbsp; m_pDefaultLayout = GetDockingPaneManager()-&gt;CreateLayout();<BR>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;GetLayout(m_pDefaultLayout);<BR><BR>and set it to default with<BR><BR>void CMainFrame::Panes_SetToDefaultLayout()<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetLayout(m_pDefaultLayout);<BR>&nbsp;&nbsp;&nbsp; }<BR><BR>&nbsp;&nbsp;&nbsp; Jimmy<BR><BR></td></tr></table> </P><P>I think I understand, but then you'd want to do this only the first time the program is run, so you should keep track of that, correct? It does seem a bit of a waste of registry space, because I'd have to keep 2 versions of the layouts there - one which is the "fresh" one (which would be the same if the registry would just be cleared) and the current one.</P><P>At the moment, it's easier to just erase the relevant registry entries, but I want to see if there's a more elegant solution <IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></P><P>Thanks!</P>]]>
   </description>
   <pubDate>Mon, 21 Mar 2005 04:54:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5836&amp;title=resetting-layout#5836</guid>
  </item> 
  <item>
   <title><![CDATA[Resetting layout : Hi,  After create all pane,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5835&amp;title=resetting-layout#5835</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 1992<br /><strong>Posted:</strong> 21 March 2005 at 4:31am<br /><br />Hi,<br><br>After create all pane, i create a new Layout and save the current settings to this layout.<br>&nbsp;&nbsp;&nbsp; m_pDefaultLayout = GetDockingPaneManager()-&gt;CreateLayout();<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;GetLayout(m_pDefaultLayout);<br><br>and set it to default with<br><br>void CMainFrame::Panes_SetToDefaultLayout()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; GetDockingPaneManager()-&gt;SetLayout(m_pDefaultLayout);<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Mon, 21 Mar 2005 04:31:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5835&amp;title=resetting-layout#5835</guid>
  </item> 
  <item>
   <title><![CDATA[Resetting layout : Hello, I&amp;#039;m loading and saving...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5824&amp;title=resetting-layout#5824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 1992<br /><strong>Posted:</strong> 20 March 2005 at 6:36am<br /><br /><P>Hello,</P><P>I'm loading and saving the layouts for all my docking panes and MDI children, but is there a way to somehow "reset" them? I could delete them from the registry directly, but that wouldn't accomplish anything, because the current layout wouldn't be updated and when I exit the program, it would save whatever it was. Is there any better way I can solve this?</P><P>Thanks,</P>]]>
   </description>
   <pubDate>Sun, 20 Mar 2005 06:36:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1992&amp;PID=5824&amp;title=resetting-layout#5824</guid>
  </item> 
 </channel>
</rss>