Is it possible to make the mouse cursor move for example 32 pixels at a time inside a window when you move it?
Printable View
Is it possible to make the mouse cursor move for example 32 pixels at a time inside a window when you move it?
I don't think so. If you're trying to do something tile-aligned, divide the position by 32, truncate then multiply by 32 again.
Ok, thanks :)
Look at SetCursorPos()
May need to call ClipCursor() to restrict the mouse movement (beware as can be evil when debugging), SetCapture() to get mouse msg's.
GetCursor() will help and so may the ClientToScreen() and ScreenToClient()