<?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 : Closing a CXTPDockingPane</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Closing a CXTPDockingPane]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:58:20 +0000</pubDate>
  <lastBuildDate>Tue, 14 Nov 2006 13:43: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=5513</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[Closing a CXTPDockingPane : Hello, If you want to destroy...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5513&amp;PID=17303&amp;title=closing-a-cxtpdockingpane#17303</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5513<br /><strong>Posted:</strong> 14 November 2006 at 1:43pm<br /><br />Hello,<DIV>If you want to destroy it, you can catch Action event and check if action is xtpPaneActionClosed.</DIV>]]>
   </description>
   <pubDate>Tue, 14 Nov 2006 13:43:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5513&amp;PID=17303&amp;title=closing-a-cxtpdockingpane#17303</guid>
  </item> 
  <item>
   <title><![CDATA[Closing a CXTPDockingPane : I do want to destroy the pane...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5513&amp;PID=17299&amp;title=closing-a-cxtpdockingpane#17299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2461">ContactGT</a><br /><strong>Subject:</strong> 5513<br /><strong>Posted:</strong> 14 November 2006 at 11:41am<br /><br />I do want to destroy the pane and I don't want it later, but if I call DestroyPane inside the <FONT size=2>OnDockingPaneNotify method, it causes a crash. How can I DestroyPane when the user clicks the 'x' in the corner of a pane?</FONT>]]>
   </description>
   <pubDate>Tue, 14 Nov 2006 11:41:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5513&amp;PID=17299&amp;title=closing-a-cxtpdockingpane#17299</guid>
  </item> 
  <item>
   <title><![CDATA[Closing a CXTPDockingPane : Hi,  don&amp;#039;t call DestroyPane...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5513&amp;PID=17290&amp;title=closing-a-cxtpdockingpane#17290</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5513<br /><strong>Posted:</strong> 14 November 2006 at 7:50am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>don't call <FONT face=Arial size=2>DestroyPane if you need to show it later.</DIV><DIV></DIV><DIV></DIV>just check <DIV>if (pPane &amp;&amp; pPane-&gt;IsClosed()) instead.</DIV><DIV>&nbsp;</DIV><DIV>IsHidden check if pane in AutoHide Mode.</DIV></FONT>]]>
   </description>
   <pubDate>Tue, 14 Nov 2006 07:50:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5513&amp;PID=17290&amp;title=closing-a-cxtpdockingpane#17290</guid>
  </item> 
  <item>
   <title><![CDATA[Closing a CXTPDockingPane : I have a CXTPDockingPane in my...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5513&amp;PID=17285&amp;title=closing-a-cxtpdockingpane#17285</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2461">ContactGT</a><br /><strong>Subject:</strong> 5513<br /><strong>Posted:</strong> 14 November 2006 at 6:17am<br /><br /><DIV><SPAN =425130711-14112006><FONT face=Arial size=2>I have a </FONT><FONT size=2><FONT face=Arial>CXTPDockingPane<SPAN =425130711-14112006> </SPAN></FONT><FONT face=Arial>in my application and a menu item to turn the pane on and off - the menu item is ticked to indicate when the pane is visible. If I close the pane via my menu event handler, I do the following:</FONT></FONT></SPAN></DIV><DIV><SPAN =425130711-14112006><FONT face=Arial size=2></FONT></SPAN>&nbsp;</DIV><DIV><SPAN =425130711-14112006><FONT face=Arial size=2>&nbsp;m_paneManager.DestroyPane(pane);<BR>&nbsp;m_MTIClientWnd.Refresh();<BR></FONT></SPAN></DIV><DIV><SPAN =425130711-14112006><FONT face=Arial size=2>In my menu OnUpdate method, I test the following to tick the menu item:</FONT></SPAN></DIV><DIV><SPAN =425130711-14112006><FONT face=Arial size=2></FONT></SPAN>&nbsp;</DIV><DIV><SPAN =425130711-14112006><FONT face=Arial size=2>&nbsp;CXTPDockingPane *pane = m_paneManager.FindPane(IDGT_PANE_PROJBROWSER);<BR>&nbsp;if ( (pane != NULL) &amp;&amp; (!pane-&gt;IsHidden()) )<BR>&nbsp;&nbsp;pCmdUI-&gt;SetCheck(true);<BR>&nbsp;else<BR>&nbsp;&nbsp;pCmdUI-&gt;SetCheck(false);</FONT></SPAN></DIV><DIV><SPAN =425130711-14112006><FONT face=Arial size=2></FONT></SPAN>&nbsp;</DIV><DIV><SPAN =425130711-14112006><FONT size=2><FONT face=Arial>The problem is when the user closes the pane using the 'x' in the corner - the pane is closed from the screen, but the FindPane method still finds the pane, so my code still shows a tick on the menu item . Do I need to add to my </FONT><FONT face=Arial>OnDockingPaneNotify, if (wParam == XTP_DPN_CLOSEPANE)&nbsp;method to destroy the pane properly? I have tried </FONT></FONT><FONT face=Arial><FONT size=2>pPane-&gt;Detach();<SPAN =425130711-14112006> but this doesn't do anything. I have tried <FONT size=2>m_paneManager.DestroyPane(pPane);, but this causes a crash.</FONT></SPAN></FONT></FONT></SPAN></DIV><DIV><SPAN =425130711-14112006><FONT face=Arial><FONT size=2><SPAN =425130711-14112006></SPAN></FONT></FONT></SPAN>&nbsp;</DIV><DIV><SPAN =425130711-14112006><FONT face=Arial><FONT size=2><SPAN =425130711-14112006>Help!!</SPAN></FONT></FONT></DIV></SPAN>]]>
   </description>
   <pubDate>Tue, 14 Nov 2006 06:17:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5513&amp;PID=17285&amp;title=closing-a-cxtpdockingpane#17285</guid>
  </item> 
 </channel>
</rss>