* lnhwnd is the window handle STORE 0 TO lnTop, lnLeft, lnBottom, lnRight = _GetWRect(lnhwnd, @lnTop, @lnLeft, @lnBottom, @lnRight)Note that the value returned by the (and GetWindowRect() as well), include the title bar, and the window frame. So if trying to calculate a position within a window, you have to take these into account. Of course, SYSMETRIC() will help here. For example, assume a form at 0, 0 in relation to the desktop. The 0, 0 postion within the form will be at a different relative position to desktop since this position is below the title bar and frame from the top, and to the left of the frame.