Is it possible to make the mouse cursor move for example 32 pixels at a time inside a window when you move it?
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.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
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()
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill