Hi,

This has got me pulling my hair out, all I want to do is get the cursor position within a client window in the same units as the window coordinates.

If I use;

Code:
Private Declare Function GetClientRect Lib "user32" (ByVal hwnd As Integer, ByRef lpRect As RECT) As Integer
to get the coordinates of the client window and;

Code:
Private Structure RECT
        Dim Left
...