<?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 : Problem loading layouts for docking panes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Problem loading layouts for docking panes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 17:18:55 +0000</pubDate>
  <lastBuildDate>Sat, 17 Jul 2010 20:14:56 +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=15288</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[Problem loading layouts for docking panes : Meanwhile I found the cause for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=59372&amp;title=problem-loading-layouts-for-docking-panes#59372</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6154">elmue</a><br /><strong>Subject:</strong> 15288<br /><strong>Posted:</strong> 17 July 2010 at 8:14pm<br /><br />Meanwhile I found the cause for my crashes:<br><br><a href="http://forum.codejock.com/forum_posts.asp?TID=16969&amp;PID=59371#59371" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=16969&amp;PID=59371#59371</a><br>]]>
   </description>
   <pubDate>Sat, 17 Jul 2010 20:14:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=59372&amp;title=problem-loading-layouts-for-docking-panes#59372</guid>
  </item> 
  <item>
   <title><![CDATA[Problem loading layouts for docking panes : &amp;gt; I have managed to sort out...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=59370&amp;title=problem-loading-layouts-for-docking-panes#59370</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6154">elmue</a><br /><strong>Subject:</strong> 15288<br /><strong>Posted:</strong> 17 July 2010 at 12:07pm<br /><br />&gt; I have managed to sort out the layout problem and things are working well now<br><br>Hello Aaron<br><br>It would be nice if you post your solution because you are not the only one who has this problem !<br><br>Elmü<br>]]>
   </description>
   <pubDate>Sat, 17 Jul 2010 12:07:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=59370&amp;title=problem-loading-layouts-for-docking-panes#59370</guid>
  </item> 
  <item>
   <title><![CDATA[Problem loading layouts for docking panes : When I click a title bar, it highlights....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=53929&amp;title=problem-loading-layouts-for-docking-panes#53929</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 15288<br /><strong>Posted:</strong> 16 October 2009 at 9:57am<br /><br />When I click a title bar, it highlights. Same thing when I click a tab to show a pane that is not selected.&nbsp;Find the display code and see what flag bit is set to cause the highlight and then see where the bit is set (I'm guessing there is&nbsp;a #define for it).]]>
   </description>
   <pubDate>Fri, 16 Oct 2009 09:57:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=53929&amp;title=problem-loading-layouts-for-docking-panes#53929</guid>
  </item> 
  <item>
   <title><![CDATA[Problem loading layouts for docking panes : Thanks RDHD, I have managed to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=53879&amp;title=problem-loading-layouts-for-docking-panes#53879</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5402">Aaron Koolen</a><br /><strong>Subject:</strong> 15288<br /><strong>Posted:</strong> 14 October 2009 at 5:40pm<br /><br />Thanks RDHD, I have managed to sort out the layout problem and things are working well now.<br /><br />Just need to find out how to highlight the title bar of a pane programatically. I want to do this when a user clicks in a window attached to the pain. Select(), Focus() etc just don't do it. Without it there's no way to see which one's currently selected.<br />]]>
   </description>
   <pubDate>Wed, 14 Oct 2009 17:40:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=53879&amp;title=problem-loading-layouts-for-docking-panes#53879</guid>
  </item> 
  <item>
   <title><![CDATA[Problem loading layouts for docking panes : The value 0xfeeefeee is an indication...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=53814&amp;title=problem-loading-layouts-for-docking-panes#53814</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 15288<br /><strong>Posted:</strong> 13 October 2009 at 9:57am<br /><br />The value 0xfeeefeee is an indication that the tabbed container has been deleted from memory. Put the entire object in the watch window and you will see that pattern throughout the instance data (set the data view mode to "hex"). Or put the pointer in one of the memory watch windows to see the pattern floods the entire instance data. <DIV>&nbsp;</DIV><DIV>So what you can do is find the m_pParentContainer's address value BEFORE you do your operation and add a data breakpoint that trips when the data changes OR simply set a breakpoint in the tabbed container's destructor. That will allow you to trap what causes the container to go bad. I suspect you are holding onto the pointer yourself. You should probably get the pointer dynamically and not store it. You will find that SetLayout is wiping out the current pane layout, which causes your object to be deleted (and a new one allocated).</DIV><DIV>&nbsp;</DIV><DIV>Use:</DIV><DIV>&nbsp;</DIV><DIV>pPane-&gt;GetContainer();</DIV><DIV>&nbsp;</DIV><DIV>when you need the container.</DIV><DIV>&nbsp;</DIV><DIV>Also, get the docking pane manager from the frame window, and the pane from the pane manager. You don't want to directly store any of these pointers yourself. If you don't use the CJ frame window, you can allocate, addref and store the pane manager but don't directly store the other pointer(s)</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P>pPaneMgr = pFrameWnd-&gt;GetDockingPaneManager();</P><DIV>&nbsp;</DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (layout.Load((LPCSTR)strLayout))</P><P>{&nbsp; </P><DIV></FONT><FONT size=2>pPaneMgr-&gt;SetLayout(&amp;layout);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>// If you know the ID of a pane you want:</DIV></FONT><DIV></DIV><DIV><FONT size=2>pPane = pPaneMgr-&gt;FindPane(nID);</FONT></DIV><DIV>if( pPane )</DIV><DIV>{</DIV><DIV>pContainer = pPane-&gt;GetContainer()</DIV><DIV>.</DIV><DIV>.</DIV><DIV>.</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>// else spin thru the panes</FONT></DIV><DIV><FONT size=2><FONT size=2><P>CXTPDockingPaneInfoList&amp; PaneList = pPaneMgr-&gt;GetPaneList();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>for</FONT></FONT><FONT size=2> (POSITION pos = PaneList.GetHeadPosition(); pos; )</P><P>{</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (CXTPDockingPane* pPane = PaneList.GetNext(pos))</P><P>{</P><DIV></DIV>pContainer = pPane-&gt;GetContainer();</FONT></DIV></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 13 Oct 2009 09:57:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=53814&amp;title=problem-loading-layouts-for-docking-panes#53814</guid>
  </item> 
  <item>
   <title><![CDATA[Problem loading layouts for docking panes : Further to this, it seems that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=53687&amp;title=problem-loading-layouts-for-docking-panes#53687</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5402">Aaron Koolen</a><br /><strong>Subject:</strong> 15288<br /><strong>Posted:</strong> 07 October 2009 at 5:49pm<br /><br />Further to this, it seems that I have managed to get the crash consistently happening here:<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />void CXTPDockingPaneTabbedContainer::ShowPane(CXTPDockingPane* pPane, BOOL bSetFocus)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(pPane);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (m_pParentContainer && m_pParentContainer-&gt;GetType() == xtpPaneTypeAutoHidePanel)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br /></pre></td></tr></table><br /> in XTPDockingPaneTabbedContainer.cpp.<br /><br />The value of m_pParentContainer is coming out as 0xfeeefeee.<br /><br />Remember, if I don't load my layout, the panes and everything are constructed with initial layout all fine without problems at all. It's the loading of the layout and then setting of it that gets into this state.<br /><br /><br /><br />]]>
   </description>
   <pubDate>Wed, 07 Oct 2009 17:49:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=53687&amp;title=problem-loading-layouts-for-docking-panes#53687</guid>
  </item> 
  <item>
   <title><![CDATA[Problem loading layouts for docking panes : Hi all. Wondering if anyone can...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=53600&amp;title=problem-loading-layouts-for-docking-panes#53600</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5402">Aaron Koolen</a><br /><strong>Subject:</strong> 15288<br /><strong>Posted:</strong> 02 October 2009 at 12:36am<br /><br />Hi all. Wondering if anyone can shed some light here.<br /><br />I have an application that creates docking panes. They are attached and sit inside my own pane which has a pane manager. I can add, delete, tear off and dock the panes fine, all is well. <br /><br />I now need to serialise the layout and restore it later and things just aren't working - my application crashes. I'm at a bit of a loss on how to solve this issue.<br /><br />When my application starts up, it's sent a message from a server to add docking panes. It then creates those panes, and on the UINotify for the pane, creates the window inside it that has my controls. It then attaches it to the pane.<br /><br />After all the panes and internal windows are created, I load the layout with the simple LoadFromFile and SetLayout. It's saved with the corollary SaveToFile and the XML all looks good.<br /><br />What do I need to ensure before calling SetLayout and what is the process required for it to work?<br /><br />Thanks<br />Aaron<br /><br /><br />To mods: Do we have to have moderated posts? Because of my geographical location the lag in replies is quite large.<br />]]>
   </description>
   <pubDate>Fri, 02 Oct 2009 00:36:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15288&amp;PID=53600&amp;title=problem-loading-layouts-for-docking-panes#53600</guid>
  </item> 
 </channel>
</rss>