<?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 : MDI &#102;orms- keep panes in &#102;orm</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : MDI &#102;orms- keep panes in &#102;orm]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 21:50:21 +0000</pubDate>
  <lastBuildDate>Sat, 07 Feb 2004 11:44:44 +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=400</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[MDI &#102;orms- keep panes in &#102;orm : Hi Aaron: Here are mods to MDIPanes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=400&amp;PID=981&amp;title=mdi-forms-keep-panes-in-form#981</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=350">vladsch</a><br /><strong>Subject:</strong> 400<br /><strong>Posted:</strong> 07 February 2004 at 11:44am<br /><br /><P>Hi Aaron:</P><P>Here are mods to MDIPanes sample so that when an MDI window is deactivated it hides its floating pane and shows&nbsp;it when re-activated. If the pane is not floating leaves it as is. </P><P>Not quite the restriction of not being able to float a pane but from what you described it should do the trick.</P><P>I tried these mods on the MDIPane sample app:</P><P>1. In CChildFrame::OnDockingPaneNotify after the line <table width="99%"><tr><td><pre class="BBcode">pPane-&gt;Attach(&amp;m_wndPropertyGrid);</pre></td></tr></table> add <table width="99%"><tr><td><pre class="BBcode">pPane-&gt;SetOptions(xtpPaneNoCloseable);</pre></td></tr></table> </P><P>This will remove the x from the docked pane and prevent it from closing. When floating the X is still there but does nothing.</P><P>2. Declare in ChildFrm.h <table width="99%"><tr><td><pre class="BBcode">afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);</pre></td></tr></table></P><P>3. In ChildFrm.cpp Add to the message map <table width="99%"><tr><td><pre class="BBcode">ON_WM_MDIACTIVATE()</pre></td></tr></table></P><P>4. In ChildFrm.cpp Add the OnMDIActivate function:</P><P><table width="99%"><tr><td><pre class="BBcode"><BR>void CChildFrame::OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd) <BR>{<BR>&nbsp;&nbsp;&nbsp; CMDIChildWnd::OnMDIActivate(bActivate, pActivateWnd, pDeactivateWnd);<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; if (bActivate &amp;&amp; m_paneManager.IsPaneClosed(IDR_PANE_PROPERTIES))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_paneManager.ShowPane(IDR_PANE_PROPERTIES); <BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp; &nbsp;else if  (m_paneManager.FindPane(IDR_PANE_PROPERTIES)-&gt;IsFloating( ))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;m_paneManager.ClosePane(IDR_PANE_PROPERTIES); <BR>&nbsp;&nbsp;&nbsp; }<BR>}<BR></pre></td></tr></table></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sat, 07 Feb 2004 11:44:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=400&amp;PID=981&amp;title=mdi-forms-keep-panes-in-form#981</guid>
  </item> 
  <item>
   <title><![CDATA[MDI &#102;orms- keep panes in &#102;orm : I am working on an MDI application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=400&amp;PID=903&amp;title=mdi-forms-keep-panes-in-form#903</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=339">aaron1</a><br /><strong>Subject:</strong> 400<br /><strong>Posted:</strong> 30 January 2004 at 5:35am<br /><br /><P>I am working on an MDI application and using the Dockking Pane controls. I would like to be able to:<BR>1. Prevent users from acutally closing the Panes with the X icon. They should only be able minimize the Pane down to its icon.</P><P>2. Prevent them from tearing the Panes off of the form. Basically just to let them move them around and hide them show them. But all on the same form.</P><P>What I am trying to avoid is having multiple identical Panes from several forms torn off and floating around the main MDI document.</P><P>Thanks.</P>]]>
   </description>
   <pubDate>Fri, 30 Jan 2004 05:35:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=400&amp;PID=903&amp;title=mdi-forms-keep-panes-in-form#903</guid>
  </item> 
 </channel>
</rss>