<?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 after closing a pane</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Problem after closing a pane]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 22:49:14 +0000</pubDate>
  <lastBuildDate>Mon, 23 Feb 2004 09:07:00 +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=457</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 after closing a pane : Hi, I think I have found my problem,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=457&amp;PID=1093&amp;title=problem-after-closing-a-pane#1093</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=379">ART Pat</a><br /><strong>Subject:</strong> 457<br /><strong>Posted:</strong> 23 February 2004 at 9:07am<br /><br /><P>Hi,</P><P>I think I have found my problem, I was recreating the pane each time instead of just calling ShowPane from the Pane Manager ... it was my problem. Sorry.</P><P>Bye! <IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></P><P>Pat</P>]]>
   </description>
   <pubDate>Mon, 23 Feb 2004 09:07:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=457&amp;PID=1093&amp;title=problem-after-closing-a-pane#1093</guid>
  </item> 
  <item>
   <title><![CDATA[Problem after closing a pane : Hi everybody, I want to create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=457&amp;PID=1073&amp;title=problem-after-closing-a-pane#1073</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=379">ART Pat</a><br /><strong>Subject:</strong> 457<br /><strong>Posted:</strong> 20 February 2004 at 1:00pm<br /><br /><P><FONT face="Courier New, Courier, mono" size=2>Hi everybody,</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>I want to create an application that have different (default) pane windows and I want to put a cheched item for each default pane in the View menu (like the Status Bar show/hide).</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>So I have two handlers to manage my state:</FONT></P><P><FONT face="Courier New, Courier, mono" color=#0000ff size=1>ON_COMMAND(ID_ART_VIEW_WORKSPACEBROWSER, OnWorkSpaceBrowser)<BR>ON_UPDATE_COMMAND_UI(ID_ART_VIEW_WORKSPACEBROWSER, OnMenuWorkSpaceBrowser)</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>OnMenuWorkSpaceBrowser, I simply validate if the corresponding pane has been closed and update the checked state.</FONT></P><FONT color=#0000ff><P></FONT><FONT face="Courier New, Courier, mono" color=#0000ff size=1>int</FONT><FONT face="Courier New, Courier, mono" color=#0000ff size=1>&nbsp;chk = mWndPaneManager.IsPaneClosed(ID_PANE_BROWSER) ? 0 : 1;<BR>pCmdUI-&gt;SetCheck(chk);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>OnWorkSpaceBrowser, I validate if the Pane is closed and if so I recreate it.</FONT></P><FONT size=2></FONT><FONT color=#0000ff size=2><FONT size=2><P></FONT><FONT size=1><FONT color=#ff0000>if </FONT>(mWndPaneManager.IsPaneClosed(ID_PANE_BROWSER))<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp; CXTPDockingPane* pwndworkspacebrowser = NULL;<BR>&nbsp;&nbsp;&nbsp;&nbsp; pwndworkspacebrowser = mWndPaneManager.CreatePane(ID_PANE_BROWSER,&nbsp;CRect(0, 0, 240, 120), dockRightOf);<BR>}<BR><FONT color=#ff0000>else<BR></FONT>{<BR>&nbsp;&nbsp; mWndPaneManager.ClosePane(ID_PANE_BROWSER);<BR>}</FONT></P><FONT size=2><P></FONT></FONT><FONT face="Courier New, Courier, mono"><FONT size=2>The problem is that when I call IsPaneClosed, after having close the pane once, it always return True. I've traced the source code and there is a problem with the container being NULL ... did I make something wrong ?</FONT></FONT></P><P><FONT face="Courier New" size=2></FONT>&nbsp;</P><P><FONT face="Courier New" size=2>Thanks,<BR></FONT><FONT face="Courier New" size=2>Pat</FONT></P>]]>
   </description>
   <pubDate>Fri, 20 Feb 2004 13:00:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=457&amp;PID=1073&amp;title=problem-after-closing-a-pane#1073</guid>
  </item> 
 </channel>
</rss>