<?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 : GetClientRect and CXTResizeFormView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : GetClientRect and CXTResizeFormView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 04:12:59 +0000</pubDate>
  <lastBuildDate>Wed, 05 Jan 2011 18:26:13 +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=17753</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[GetClientRect and CXTResizeFormView : I have an instance of a CXTResizeFormView....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17753&amp;PID=62095&amp;title=getclientrect-and-cxtresizeformview#62095</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6308">AZDavidPhx</a><br /><strong>Subject:</strong> 17753<br /><strong>Posted:</strong> 05 January 2011 at 6:26pm<br /><br />I have an instance of a CXTResizeFormView. &nbsp;I am trying to manually position a button within the view. &nbsp;I call the view's GetClientRect to obtain the view's client area and then call MoveWindow with coordinates (0,0) to try to position the button at the top left of the view.&nbsp;<div><br></div><div>The rectangle that is being returned does not correspond to the entire scrollable area. &nbsp;Instead, I am getting a rectangle that corresponds to the current visible area that is being scrolled. &nbsp;I need the rectangle that corresponds to the entire scrollable area.<div><br></div><div>What happens is that if I vertically scroll the view half way down and then invoke MoveWindow, passing it the coordinate (0,0) - the button is getting placed at the top of the visible window which is actually the middle of the entire view. &nbsp;</div><div><br></div><div>I would expect it to look like this:</div><div><div>---------------------------------------------------------------</div><div>&#091; Button &#093;</div><div><br></div><div><br></div><div><br></div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">										</span>&#091; Scrollbar Thumb &#093;</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>-----------------------------------------------------------------</div></div><div><br></div><div>but instead, it looks like this:</div><div><br></div><div>---------------------------------------------------------------</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>&#091; Button &#093; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#091; Scrollbar Thumb &#093;</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>-----------------------------------------------------------------</div></div><div><br></div><div>If I scroll the thumb all the way up to the top first then it works. &nbsp;But otherwise there is a gap between the top of the actual view and where the button is placed.</div><div><br></div><div>Why does GetClientRect not return the rectangle that corresponds to the entire view? &nbsp;How am I supposed to use MoveWindow with CXTResizeFormView if client coordinates are unreliable?</div><div><br></div><div>Thanks.</div><div><br></div><div>-David&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 05 Jan 2011 18:26:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17753&amp;PID=62095&amp;title=getclientrect-and-cxtresizeformview#62095</guid>
  </item> 
 </channel>
</rss>