<?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 : Fixing Size of CXTPDockingPane</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Fixing Size of CXTPDockingPane]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 13:13:04 +0000</pubDate>
  <lastBuildDate>Sat, 19 Apr 2008 11:01:16 +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=6465</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[Fixing Size of CXTPDockingPane : I have the same problem! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=33970&amp;title=fixing-size-of-cxtpdockingpane#33970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1897">shineryu</a><br /><strong>Subject:</strong> 6465<br /><strong>Posted:</strong> 19 April 2008 at 11:01am<br /><br />I have the same problem!]]>
   </description>
   <pubDate>Sat, 19 Apr 2008 11:01:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=33970&amp;title=fixing-size-of-cxtpdockingpane#33970</guid>
  </item> 
  <item>
   <title><![CDATA[Fixing Size of CXTPDockingPane : Oleg  I have tried that. The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20755&amp;title=fixing-size-of-cxtpdockingpane#20755</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2736">asparagusx</a><br /><strong>Subject:</strong> 6465<br /><strong>Posted:</strong> 27 February 2007 at 12:00am<br /><br />Oleg<DIV>&nbsp;</DIV><DIV>I have tried that. The problem is quite complex depending on the requirements of the particular pane (and the contents) of it. If I set the maxsize, then it does fix the size issue&nbsp;when a pane is floated, BUT then when I dock it again, depending on which side of the client area it is being docked, it 'shrinks' to the max size, which makes (for instance) the bottom pane area HUGE, which only then shows a small client area. My application, being a CAD system, requires the client area to be as large as possible at all times, to allow the user a proper view of a drawing. As I said, I can fix it in one way, but then it breaks something else. I only have the issue with some of my docking panes, containing typically a dialog resource (which might only be a few controls in size&nbsp;- e.g. small). </DIV><DIV>&nbsp;</DIV><DIV>So, basically I need to set max size when it floats, but then need to reset maxsize to a large value, BEFORE it docks (e.g. via an action). I have tried this, but it still does not work - any further suggstions?</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV><DIV>&nbsp;</DIV><DIV>Anton</DIV><DIV>&nbsp;</DIV><DIV>PS - Overall the library is excellent - just these few frustrating things keep cropping up!</DIV>]]>
   </description>
   <pubDate>Tue, 27 Feb 2007 00:00:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20755&amp;title=fixing-size-of-cxtpdockingpane#20755</guid>
  </item> 
  <item>
   <title><![CDATA[Fixing Size of CXTPDockingPane : Hello,  Show code where you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20736&amp;title=fixing-size-of-cxtpdockingpane#20736</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6465<br /><strong>Posted:</strong> 26 February 2007 at 4:13am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Show code where you create all panes and set its max size.</DIV>]]>
   </description>
   <pubDate>Mon, 26 Feb 2007 04:13:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20736&amp;title=fixing-size-of-cxtpdockingpane#20736</guid>
  </item> 
  <item>
   <title><![CDATA[Fixing Size of CXTPDockingPane :  void CMainFrame::InitSize(CDockingPane...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20713&amp;title=fixing-size-of-cxtpdockingpane#20713</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2736">asparagusx</a><br /><strong>Subject:</strong> 6465<br /><strong>Posted:</strong> 23 February 2007 at 12:16pm<br /><br /><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CMainFrame::InitSize(CDockingPane *pPane,CWnd *pWnd,</FONT><FONT color=#0000ff size=2>bool</FONT><FONT size=2> SetInitSize,UINT Flag,CSize NewSize)</P><P>{</P><P>CRect c;</P><P>CSize s;</P><P></P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (IsWin(pWnd)) </FONT><FONT color=#008000 size=2>// set size to a given window</P></FONT><FONT size=2><P>{</P><P>pWnd-&gt;GetClientRect(&amp;c);</P><P>s.cx = c.Width();</P><P>s.cy = c.Height();</P><P>}</P><P></FONT><FONT color=#0000ff size=2>else</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (NewSize != CSize(-1,-1)) </FONT><FONT color=#008000 size=2>// set size to passed parameters</P></FONT><FONT size=2><P>s = NewSize;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (Flag == SET_PANE_MIN_TRACK) </FONT><FONT color=#008000 size=2>// set minimum size</P></FONT><FONT size=2><P>{</P><P>pPane-&gt;SetMinTrackSize(s);</P><P>pPane-&gt;SetMaxTrackSize(CSize(32000,32000));</P><P>}</P><P></FONT><FONT color=#0000ff size=2>else</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (Flag == SET_PANE_MAX_TRACK) </FONT><FONT color=#008000 size=2>// set maximin size</P></FONT><FONT size=2><P>{</P><P>pPane-&gt;SetMinTrackSize(CSize(0,0));</P><P>pPane-&gt;SetMaxTrackSize(s);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>else</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (Flag == SET_PANE_MINMAX_TRACK) </FONT><FONT color=#008000 size=2>// set min and max</P></FONT><FONT size=2><P>{</P><P>pPane-&gt;SetMinTrackSize(s);</P><P>pPane-&gt;SetMaxTrackSize(s);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (SetInitSize) </FONT><FONT color=#008000 size=2>// save the original size</P></FONT><FONT size=2><P>pPane-&gt;DialogSize = s;</P><P></FONT><FONT color=#008000 size=2>// user various combinations of RecalcFramesLayout, RedrawPane etc. here - no effect!</P></FONT><FONT size=2><P>}</P></FONT>]]>
   </description>
   <pubDate>Fri, 23 Feb 2007 12:16:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20713&amp;title=fixing-size-of-cxtpdockingpane#20713</guid>
  </item> 
  <item>
   <title><![CDATA[Fixing Size of CXTPDockingPane : Akur  Sorry - tried this and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20711&amp;title=fixing-size-of-cxtpdockingpane#20711</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2736">asparagusx</a><br /><strong>Subject:</strong> 6465<br /><strong>Posted:</strong> 23 February 2007 at 12:01pm<br /><br />Akur<DIV>&nbsp;</DIV><DIV>Sorry - tried this and many other combinations and it does not work! I have a function called InitSize which can set either the Min, Max (or both) tracking sizes. It does not resize immediatly (which is what I want), but will resize when the users clicks on the edges of the pane and it will then 'snap' to the correct size. I have called RedrawPane, RecalcFrameLayout, RecalcFramesLayout - but no luck. I can attach the function if you want.</DIV><DIV>&nbsp;</DIV><DIV>Anton</DIV>]]>
   </description>
   <pubDate>Fri, 23 Feb 2007 12:01:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20711&amp;title=fixing-size-of-cxtpdockingpane#20711</guid>
  </item> 
  <item>
   <title><![CDATA[Fixing Size of CXTPDockingPane : Hi,after calling pPane-&amp;gt;SetMinTrackSize();call...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20710&amp;title=fixing-size-of-cxtpdockingpane#20710</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2014">akur</a><br /><strong>Subject:</strong> 6465<br /><strong>Posted:</strong> 23 February 2007 at 11:50am<br /><br />Hi,<br><br>after calling pPane-&gt;SetMinTrackSize();<br>call pXtpDockingPanemanager-&gt;RecalcFramesLayout(). This will resize your pane immediately.]]>
   </description>
   <pubDate>Fri, 23 Feb 2007 11:50:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20710&amp;title=fixing-size-of-cxtpdockingpane#20710</guid>
  </item> 
  <item>
   <title><![CDATA[Fixing Size of CXTPDockingPane : Any progress on this?. I have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20636&amp;title=fixing-size-of-cxtpdockingpane#20636</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2736">asparagusx</a><br /><strong>Subject:</strong> 6465<br /><strong>Posted:</strong> 22 February 2007 at 12:05am<br /><br /><P>Any progress on this?. I have implemented a number of exciting new features in our software, based on Xtreme Toolkit, but there still seem to be what appears to be some basic issues that is stalling development.</P><P>&nbsp;</P><P>Thanks</P><P>Anton</P>]]>
   </description>
   <pubDate>Thu, 22 Feb 2007 00:05:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20636&amp;title=fixing-size-of-cxtpdockingpane#20636</guid>
  </item> 
  <item>
   <title><![CDATA[Fixing Size of CXTPDockingPane :  Further to this problem (everything...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20616&amp;title=fixing-size-of-cxtpdockingpane#20616</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2736">asparagusx</a><br /><strong>Subject:</strong> 6465<br /><strong>Posted:</strong> 21 February 2007 at 7:04am<br /><br /><img src="https://forum.codejock.com/smileys/smiley7.gif" border="0"><DIV></DIV>Further to this problem (everything here seems related), but I am unable to resize a CXTPDockingPane derived class correctly. I need to resize a floating pane IMMEDIATLY e.g. set it's new size. I have tried may combinations of SetMinTrackSize, SetMaxTrackSize, RedrawPane, RedrawFramesLayout etc. but cannot seem to be to force the size of a floating pane.<DIV>&nbsp;</DIV><DIV>PLEASE HELP!</DIV><DIV>&nbsp;</DIV><DIV>Anton</DIV>]]>
   </description>
   <pubDate>Wed, 21 Feb 2007 07:04:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20616&amp;title=fixing-size-of-cxtpdockingpane#20616</guid>
  </item> 
  <item>
   <title><![CDATA[Fixing Size of CXTPDockingPane : Hallo  I know there are various...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20585&amp;title=fixing-size-of-cxtpdockingpane#20585</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2736">asparagusx</a><br /><strong>Subject:</strong> 6465<br /><strong>Posted:</strong> 20 February 2007 at 6:38am<br /><br />Hallo<DIV>&nbsp;</DIV><DIV>I know there are various topics about sizing CXTPDockingPanes, but I cannot resolve an issue I have. I have a CXTPDockingPane derived class (CDockingPane) and I want to force the size of the pane to be fixed, when docked. When the pane is docked to the bottom of my application, it 'grows' to fit the avaiable space, even though I have called <FONT size=2><P>pPane-&gt;SetMinTrackSize(s);</P><DIV></FONT><FONT size=2>pPane-&gt;SetMaxTrackSize(s);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>to 'fix' the size of the pane. The height of the docked pane is many times higher than the maximum height set using SetMaxTrackSize which uses up valuable space in my client area. How can a force the docked size to be a specific value.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thanks</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Anton</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 20 Feb 2007 06:38:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6465&amp;PID=20585&amp;title=fixing-size-of-cxtpdockingpane#20585</guid>
  </item> 
 </channel>
</rss>