<?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 : Top and Left of a Pane</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Top and Left of a Pane]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 22:16:53 +0000</pubDate>
  <lastBuildDate>Tue, 29 Jan 2008 14:58:04 +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=9439</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[Top and Left of a Pane : &amp;#039;Get the current docking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9439&amp;PID=30615&amp;title=top-and-left-of-a-pane#30615</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2463">allamore</a><br /><strong>Subject:</strong> 9439<br /><strong>Posted:</strong> 29 January 2008 at 2:58pm<br /><br />'Get the current docking pane that we want the position for<br />Set dpTemp = dpTesting.FindPane(lPane_ID)<br />'Get the size information of the Docking Pane<br />GetWindowRect dpTemp.Handle, rectSize<br />'Put the top and Left into the a Point structure<br />pointapiTemp.X = rectSize.Left<br />pointapiTemp.Y = rectSize.Top<br />'Change the Docking Pane Coordinates to Screen Coordinates<br />ClientToScreen GetDesktopWindow, pointapiTemp<br />'Change the Screen Coordinates to the Form Coordinates<br />ScreenToClient frmRules.hwnd, pointapiTemp<br />'Change the Coordinates from Pixels to Twips, The form is is Twips<br />lLeft = ScaleX(pointapiTemp.X, vbPixels, Me.ScaleMode) + ScaleX(EditLeft, vbTwips, Me.ScaleMode)<br />lTop = ScaleY(pointapiTemp.Y, vbPixels, Me.ScaleMode) + ScaleY(EditTop, vbTwips, Me.ScaleMode)<br />dtpickerframe.Move lLeft, lTop, lColWidth, ScaleY((EditHeight), vbTwips, Me.ScaleMode) + 360<br /><br />The date/time picker control is on the form. So the ScreenToClient api call is passed the forms hwnd value.<br /><br />Adam]]>
   </description>
   <pubDate>Tue, 29 Jan 2008 14:58:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9439&amp;PID=30615&amp;title=top-and-left-of-a-pane#30615</guid>
  </item> 
  <item>
   <title><![CDATA[Top and Left of a Pane : Hi, try use API function GetWIndowRect....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9439&amp;PID=30614&amp;title=top-and-left-of-a-pane#30614</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9439<br /><strong>Posted:</strong> 29 January 2008 at 1:15pm<br /><br />Hi,<DIV>try use API function GetWIndowRect.</DIV>]]>
   </description>
   <pubDate>Tue, 29 Jan 2008 13:15:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9439&amp;PID=30614&amp;title=top-and-left-of-a-pane#30614</guid>
  </item> 
  <item>
   <title><![CDATA[Top and Left of a Pane : Let me start out by describing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9439&amp;PID=30607&amp;title=top-and-left-of-a-pane#30607</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2463">allamore</a><br /><strong>Subject:</strong> 9439<br /><strong>Posted:</strong> 29 January 2008 at 12:32pm<br /><br />Let me start out by describing the layout.<br /><br />1) A VB6 form which has the docking pane manager<br />2) There is a grid inside of picture box<br />3) The picture box is assigned to a pane when we create the panes.<br /><br />When the user clicks inside a cell of the grid, and the cell is a date/time cell, I need to show a datetime picker control over that cell.<br /><br />I am having trouble finding the left and top values of the grids cell.<br /><br />The grid always returns top/left of zero because it is inside the picture box control. The picturebox control also returns zero for top/left because it inside of the docking pane. So, the top level item is the docking pane. How can I get the top/left of that docking pane?<br /><br />Adam Lamore]]>
   </description>
   <pubDate>Tue, 29 Jan 2008 12:32:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9439&amp;PID=30607&amp;title=top-and-left-of-a-pane#30607</guid>
  </item> 
 </channel>
</rss>