<?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 pan reload problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Docking pan reload problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:59:13 +0000</pubDate>
  <lastBuildDate>Sun, 20 Aug 2006 19:47:51 +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=4835</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 pan reload problem : Thanks for your help everything...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4835&amp;PID=15051&amp;title=docking-pan-reload-problem#15051</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2206">Cedric Caron</a><br /><strong>Subject:</strong> 4835<br /><strong>Posted:</strong> 20 August 2006 at 7:47pm<br /><br /><P>Thanks for your help everything now&nbsp;working fine.</P><DIV>The notification handle is implemented (without the pann are not displayed)&nbsp;but the 2 windows inside the pan need to be created to allow my&nbsp;application to work properly.</DIV><DIV>&nbsp;</DIV><DIV>When creating the 2 windows inside the&nbsp;notofication the windows is only created&nbsp;when the pane is visible.</DIV><DIV>&nbsp;</DIV><DIV>Congratulation for your very goot toolkit.</DIV><DIV>&nbsp;</DIV><DIV>Cédric&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 20 Aug 2006 19:47:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4835&amp;PID=15051&amp;title=docking-pan-reload-problem#15051</guid>
  </item> 
  <item>
   <title><![CDATA[Docking pan reload problem : Hi,  m_pOutlookPan pointer will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4835&amp;PID=15043&amp;title=docking-pan-reload-problem#15043</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4835<br /><strong>Posted:</strong> 18 August 2006 at 10:09pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>m_pOutlookPan pointer will not be valid after SetLayout call... So use FindPane instead and not save pointers as member.</DIV><DIV>&nbsp;</DIV><DIV>also... better use Notify handler to atach panes. (m_pNutritionPan-&gt;Attach(&amp;m_nutritionBar));</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 18 Aug 2006 22:09:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4835&amp;PID=15043&amp;title=docking-pan-reload-problem#15043</guid>
  </item> 
  <item>
   <title><![CDATA[Docking pan reload problem : I use the folowing code inmy application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4835&amp;PID=15041&amp;title=docking-pan-reload-problem#15041</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2206">Cedric Caron</a><br /><strong>Subject:</strong> 4835<br /><strong>Posted:</strong> 18 August 2006 at 8:54pm<br /><br />I use the folowing code inmy application to create 2 docking pane:<DIV>&nbsp;</DIV><DIV>&nbsp;// Create docking panes.<BR>&nbsp;m_outlookViewBar.Create(this);<BR>&nbsp;m_pOutlookPan = m_paneManager.CreatePane(IDR_OUTLOOKPAN, CRect(0, 0,200, 120), xtpPaneDockLeft);<BR>&nbsp;m_pOutlookPan-&gt;Attach(&amp;m_outlookViewBar);</DIV><DIV>&nbsp;m_nutritionBar.Create(this);<BR>&nbsp;m_pNutritionPan = m_paneManager.CreatePane(IDR_NUTRITIONPAN, CRect(0, 0,200, 120), xtpPaneDockBottom, m_pOutlookPan);<BR>&nbsp;m_pNutritionPan-&gt;Attach(&amp;m_nutritionBar);<BR>&nbsp;m_paneManager.AttachPane(m_pNutritionPan, m_pOutlookPan);</DIV><DIV>&nbsp;m_paneManager.ShowPane(m_pOutlookPan);</DIV><DIV>&nbsp;// Load the previous state for docking panes.<BR>&nbsp;CXTPDockingPaneLayout layoutNormal(&amp;m_paneManager);<BR>&nbsp;if(layoutNormal.Load(_T("NormalLayout")))<BR>&nbsp;{<BR>&nbsp;&nbsp;m_paneManager.SetLayout(&amp;layoutNormal);<BR>&nbsp;}</DIV><DIV>&nbsp;</DIV><DIV>And this code to show/hide each pane from a menu</DIV><DIV>&nbsp;</DIV><DIV>void CMainFrame::OnViewWorkspace() <BR>{<BR>&nbsp;// Toggle the workspace window<BR>&nbsp;if(m_pOutlookPan-&gt;IsClosed())<BR>&nbsp;{<BR>&nbsp;&nbsp;m_paneManager.ShowPane(m_pOutlookPan);<BR>&nbsp;}<BR>&nbsp;else<BR>&nbsp;{<BR>&nbsp;&nbsp;m_paneManager.ClosePane(m_pOutlookPan);<BR>&nbsp;}<BR>}</DIV><DIV>void CMainFrame::OnUpdateViewWorkspace(CCmdUI* pCmdUI) <BR>{<BR>&nbsp;pCmdUI-&gt;SetCheck(!m_pOutlookPan-&gt;IsClosed());<BR>}</DIV><DIV>&nbsp;</DIV><DIV>and this code to save the positions</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;// Save the current state for docking panes.<BR>&nbsp;CXTPDockingPaneLayout layoutNormal(&amp;m_paneManager);<BR>&nbsp;m_paneManager.GetLayout(&amp;layoutNormal);<BR>&nbsp;layoutNormal.Save(_T("NormalLayout"));<BR></DIV><DIV>everything is working fine if I close my application with the first pane in front but if I close close my application with the 2nd pane in front the menu item of the 2nd pan is not checked and my application crash if I select this menu item.</DIV><DIV>&nbsp;</DIV><DIV>The pane is the curnt visible pan but the function m_pOutlookPan-&gt;IsClosed() return TRUE and the application crash when I call m_paneManager.ShowPane(m_pOutlookPan) or&nbsp;&nbsp;m_paneManager.ClosePane(m_pOutlookPan)</DIV><DIV>&nbsp;</DIV><DIV>Everything is working fine if I remove the save/load code</DIV><DIV>&nbsp;</DIV><DIV>Any idea where can be the problem ?<BR></DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>Cédric</DIV>]]>
   </description>
   <pubDate>Fri, 18 Aug 2006 20:54:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4835&amp;PID=15041&amp;title=docking-pan-reload-problem#15041</guid>
  </item> 
 </channel>
</rss>