dynamic_sysop
Senior Contributor
hi could someone tell me if it's possible to convert a Long to the co-ordinates of the mouse within an item ( eg: i have a listview subclassed in vb.net and when i click on an item in it , i want the co-ordinates like 10 = x , 15 = y )
when i view the lParam for mouse move i get this for the values...
Message: WM_MOUSEMOVE 512 - wParam 0 - lParam (mouse point on parent hWnd) 655361
the "655361" being the mouse co-ordinates , but in vb6 i'd get this
Message: WM_MOUSEMOVE 512 - wParam 0 - lParam (mouse point on parent hWnd) 327690
the "327" being x=8 , the "690" being y=10
i need to get the exact co-ords so that i can then carry out a HITTEST followed by a LVM_GETITEMTEXT
cheers.
when i view the lParam for mouse move i get this for the values...
Message: WM_MOUSEMOVE 512 - wParam 0 - lParam (mouse point on parent hWnd) 655361
the "655361" being the mouse co-ordinates , but in vb6 i'd get this
Message: WM_MOUSEMOVE 512 - wParam 0 - lParam (mouse point on parent hWnd) 327690
the "327" being x=8 , the "690" being y=10
i need to get the exact co-ords so that i can then carry out a HITTEST followed by a LVM_GETITEMTEXT
cheers.