<?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 : Destroy pane on closing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Destroy pane on closing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 01:35:05 +0000</pubDate>
  <lastBuildDate>Mon, 14 Aug 2006 09:30:58 +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=4792</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[Destroy pane on closing : Hi,  It is not expected behavior...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4792&amp;PID=14875&amp;title=destroy-pane-on-closing#14875</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4792<br /><strong>Posted:</strong> 14 August 2006 at 9:30am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>It is not expected behavior for panes. </DIV><DIV></DIV>For example if developer want to change layout he can destroy pane and create it again and it will not destory child. Or like in panes sample want to change from some "debug" to "Edit" layout.]]>
   </description>
   <pubDate>Mon, 14 Aug 2006 09:30:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4792&amp;PID=14875&amp;title=destroy-pane-on-closing#14875</guid>
  </item> 
  <item>
   <title><![CDATA[Destroy pane on closing : Thanks, pPane-&amp;gt;GetChild()-&amp;gt;DestroyWindow();...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4792&amp;PID=14848&amp;title=destroy-pane-on-closing#14848</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4792<br /><strong>Posted:</strong> 14 August 2006 at 8:27am<br /><br />Thanks, <EM>pPane-&gt;GetChild()-&gt;DestroyWindow();</EM> works. But the expected behaviour is if you destroy a window it's childs are destroyed too, which is not the case for the panes.<DIV></DIV>]]>
   </description>
   <pubDate>Mon, 14 Aug 2006 08:27:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4792&amp;PID=14848&amp;title=destroy-pane-on-closing#14848</guid>
  </item> 
  <item>
   <title><![CDATA[Destroy pane on closing : Hi, You need XTP_ACTION_NOCLOSE...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4792&amp;PID=14836&amp;title=destroy-pane-on-closing#14836</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4792<br /><strong>Posted:</strong> 14 August 2006 at 7:48am<br /><br /><DIV>Hi,</DIV><DIV>You need <strong>XTP_ACTION_NOCLOSE </strong>+ manually destroy child pane.</DIV><DIV>&nbsp;</DIV><DIV>Something like:</DIV><DIV>&nbsp;</DIV><DIV>if (pPane-&gt;GetChild()) pPane-&gt;GetChild()-&gt;DestroyWindow();</DIV><DIV>m_paneManager.DestroyPane (pPane);<BR><strong>return XTP_ACTION_NOCLOSE;</strong></DIV>]]>
   </description>
   <pubDate>Mon, 14 Aug 2006 07:48:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4792&amp;PID=14836&amp;title=destroy-pane-on-closing#14836</guid>
  </item> 
  <item>
   <title><![CDATA[Destroy pane on closing : I would like to destroy a pane...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4792&amp;PID=14835&amp;title=destroy-pane-on-closing#14835</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4792<br /><strong>Posted:</strong> 14 August 2006 at 4:24am<br /><br /><DIV>I would like to destroy a pane if the user closes it. So far I had no success:</DIV><DIV>&nbsp;</DIV><DIV>LRESULT CMainFrame::OnDockingPaneNotify (WPARAM wParam, LPARAM lParam)</DIV><DIV></DIV>{<DIV>&nbsp;&nbsp; CXTPDockingPane *pPane = (CXTPDockingPane *) lParam;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; switch (wParam)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp; case XTP_DPN_CLOSEPANE:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_paneManager.DestroyPane (pPane);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><EM>1)</EM></strong> <strong>break;</strong></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><EM>2)</EM></strong> <strong>return XTP_ACTION_NOCLOSE;</strong></DIV><DIV>&nbsp;&nbsp; }</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; return 0;<BR>}</DIV><DIV>&nbsp;</DIV><DIV><strong><EM>1)</EM></strong> Causes a crash because the toolkit trys to close a destroyed pane after the event handler returns.</DIV><DIV>&nbsp;</DIV><DIV><strong><EM>2)</EM></strong> The pane is beeing destroyed and the toolkit doesn't try to close the pane anymore, but the pane isn't really destroyed. I've attached a view (AttachView) to the pane which isn't destroyed when calling DestroyPane. The view will be destroyed when the main frame is beeing closed.</DIV><DIV>&nbsp;</DIV><DIV>In <strong>AttachView</strong> I can pass the parent window, but unfortunately I can not set the pane as the parent: <EM>cannot convert parameter 1 from 'class CXTPDockingPane *' to 'class CWnd *'</EM></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 14 Aug 2006 04:24:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4792&amp;PID=14835&amp;title=destroy-pane-on-closing#14835</guid>
  </item> 
 </channel>
</rss>