<?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 : Obtaining Dimensi&#111;ns of the Client Area</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Obtaining Dimensi&#111;ns of the Client Area]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 00:44:50 +0000</pubDate>
  <lastBuildDate>Wed, 04 Jan 2006 09:58: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=3460</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[Obtaining Dimensi&#111;ns of the Client Area : Excellent. Thank you very much...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3460&amp;PID=10408&amp;title=obtaining-dimensions-of-the-client-area#10408</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1695">Eugene</a><br /><strong>Subject:</strong> 3460<br /><strong>Posted:</strong> 04 January 2006 at 9:58am<br /><br />Excellent. Thank you very much for the help!]]>
   </description>
   <pubDate>Wed, 04 Jan 2006 09:58:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3460&amp;PID=10408&amp;title=obtaining-dimensions-of-the-client-area#10408</guid>
  </item> 
  <item>
   <title><![CDATA[Obtaining Dimensi&#111;ns of the Client Area : Hello, Have no any problems with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3460&amp;PID=10400&amp;title=obtaining-dimensions-of-the-client-area#10400</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3460<br /><strong>Posted:</strong> 04 January 2006 at 12:55am<br /><br /><P>Hello,</P><P>Have no any problems with it:</P><P><A href="https://forum.codejock.com/uploads/oleg/2006-01-04_005454_ms.zip" target="_blank">2006-01-04_005454_ms.zip</A></P><P>&nbsp;</P><P>see this code:</P><P>&nbsp;&nbsp;&nbsp; frmD.Show<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Dim l As Long, r As Long, t As Long, b As Long<BR>&nbsp;&nbsp;&nbsp; CommandBars.GetClientRect l, t, r, b<BR>&nbsp;&nbsp;&nbsp; frmD.Move 0, 0, r - l - 80, b - t - 80<BR></P>]]>
   </description>
   <pubDate>Wed, 04 Jan 2006 00:55:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3460&amp;PID=10400&amp;title=obtaining-dimensions-of-the-client-area#10400</guid>
  </item> 
  <item>
   <title><![CDATA[Obtaining Dimensi&#111;ns of the Client Area : Hello,I&amp;#039;m not trying to change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3460&amp;PID=10390&amp;title=obtaining-dimensions-of-the-client-area#10390</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1695">Eugene</a><br /><strong>Subject:</strong> 3460<br /><strong>Posted:</strong> 03 January 2006 at 2:19pm<br /><br />Hello,<br><br>I'm not trying to change the size of the MDITabworkspace. I am trying to re-size the MDI child form. In the samples provided with Commandbars, the MDI child form has Top, Left, Width, and Height set from within the Form_Load procedure. In your examples, these values seem arbitrary -- negative numbers are used for Top and Left and huge numbers (31,000) are used for Width and Height. I can't find anything in the documentation explaining why these values were used.<br><br>I need to find out how to determine the size of the actual client area -- judging from the help files, that seems like what GetClientRect is supposed to do, but I am not getting proper values. For example, GetClientRect is returning the same values regardless of the resolution of the system. <br><br>This is a mission-critical capability for us. If we can't get this addressed, we can't use Xtreme Pro!<br><br>Thanks.<br><br>Eugene.<br>]]>
   </description>
   <pubDate>Tue, 03 Jan 2006 14:19:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3460&amp;PID=10390&amp;title=obtaining-dimensions-of-the-client-area#10390</guid>
  </item> 
  <item>
   <title><![CDATA[Obtaining Dimensi&#111;ns of the Client Area : Hello, CommandBars.GetClientRect...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3460&amp;PID=10388&amp;title=obtaining-dimensions-of-the-client-area#10388</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3460<br /><strong>Posted:</strong> 03 January 2006 at 1:53pm<br /><br /><P><FONT size=3>Hello,</FONT></P><P><FONT size=3>CommandBars.GetClientRect doesn't decrease size of MDITabWorkspace.</FONT></P><P><FONT size=3>Think it can be reason of you problem...</FONT></P>]]>
   </description>
   <pubDate>Tue, 03 Jan 2006 13:53:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3460&amp;PID=10388&amp;title=obtaining-dimensions-of-the-client-area#10388</guid>
  </item> 
  <item>
   <title><![CDATA[Obtaining Dimensi&#111;ns of the Client Area : Hello,We are developing a VB 6.0...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3460&amp;PID=10385&amp;title=obtaining-dimensions-of-the-client-area#10385</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1695">Eugene</a><br /><strong>Subject:</strong> 3460<br /><strong>Posted:</strong> 03 January 2006 at 10:40am<br /><br /><!--&#091;if !supportEmptyParas&#093;-->Hello,<br><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3">We are developing a VB 6.0 application. We’ve recentlypurchased a 4-developer license for the Xtreme Pro Suite. We are usingCommandbars for the menus, toolbar, status bar, and MDI tabbed workspace.</font></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3">However, we haven’t been able to figure out how to calculatethe full client area available for a given form. We need to know this in orderto re-position and re-size the controls to allow the form to work in variousresolutions.</font></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3">We’ve tried the following:<br><o:p></o:p></font><!--&#091;endif&#093;--></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3"><span style="">&nbsp;&nbsp;&nbsp; </span>'Calculate theheight and width of the client area.</font></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3"><span style="">&nbsp;&nbsp;&nbsp; </span>Dim lLeft AsLong, lTop As Long, lRight As Long, lBottom As Long</font></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3"><span style="">&nbsp;&nbsp;&nbsp;</span>CommandBars.GetClientRect lLeft, lTop, lRight, lBottom</font></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3"><span style="">&nbsp;&nbsp;&nbsp; </span>lClientWidth =lRight - lLeft</font></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3"><span style="">&nbsp;&nbsp;&nbsp; </span>lClientHeight =lBottom – lTop</font></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3">I’ve then assigned these values to Width and Height withinthe MDI child form. However, the values returned by GetClientRect are not evenremotely correct. I presume that GetClientRect returns the full area from thetoolbar (assuming the toolbar is at the top of the screen), to the status bar,and from the left and right sides of the MDI form (assuming no docked items).Is this correct? Is there some other function we should be using?&nbsp;<o:p></o:p></font><!--&#091;endif&#093;--></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3">When we make a call to GetClientRect, we end up with a widthof 4680 and a height of 1725. This is far from the actual client area of about11,500 by 5,750 (on our test machine).</font></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3">Note, in case it makes a difference to how GetClientRectdoes its calculations, within our forms we are using the Sizer tool fromComponentOne (specifically, the C1 Elastic component). This allows us tore-size components and sections of our forms.</font></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3">In the samples, the MDI child form always seems to have Top,Left, Width, and Height set within Form_Load. The values assigned to Width andHeight are always larger than the actual client area (in the samples, they areusually 31,000). These values stop us from being able to properly re-size andre-position controls on the form. What is the purpose behind these values?<br><o:p></o:p></font><!--&#091;endif&#093;--></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3">I realize that this is a very straightforward task we aretrying to accomplish, but we cannot seem to get it to work with Commandbars inuse. We’ve searched through the forums and have studied the documentation.We’re lost. The package seems quite good, but the documentation is horrible!<br><o:p></o:p></font><!--&#091;endif&#093;--></p><p style="font-family: Arial,Helvetica,sans-serif;" ="Ms&#111;normal"><font size="3">Can anyone offer any suggestions?</font></p><font size="3"><span style="font-size: 12pt; font-family: Arial,Helvetica,sans-serif;">Thanks in advance.</span></font>]]>
   </description>
   <pubDate>Tue, 03 Jan 2006 10:40:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3460&amp;PID=10385&amp;title=obtaining-dimensions-of-the-client-area#10385</guid>
  </item> 
 </channel>
</rss>