ab11
asked on
Moving cursor with WM_SETCURSOR
Hi !
I am trying to move cursor manually in my sample dialog application by doing:
POINT pt;
::GetCursorPos(&pt);
SendMessage(WM_SETCURSOR,N ULL,MAKELP ARAM(pt.x+ 10,pt.y));
This doesn't work although in Spy++ I can see that my dialog gets the correct LPARAM.
I tried also to use WM_MOUSEMOVE, but the result was the same.
What do I miss ?
Thanks.
I am trying to move cursor manually in my sample dialog application by doing:
POINT pt;
::GetCursorPos(&pt);
SendMessage(WM_SETCURSOR,N
This doesn't work although in Spy++ I can see that my dialog gets the correct LPARAM.
I tried also to use WM_MOUSEMOVE, but the result was the same.
What do I miss ?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The functions ClientToScreen and ScreenToClient can be used to adjust a point from your app's co-ordinates to/from the screen co-ordinates if you require that.