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
Code:
Private Structure RECT Dim Left