-
Hi, I use SetCursorPos for my Game, but I use a PictureBox with the BitBlt-API, the SetCursorPos-Function set the cursor on the x and y coordinates of the screen-object, how can I put the cursor on the position (where I have clicked) in the PictureBox and hold the cursor on that x and y coordinates (Cursor not movable) - or how can I set the cursor on MouseMove in the PictureBox the (clicked) x and y coordinates.
Thanx for help and replies, MAJA
-
hmm.. quite confusing...
Anyway, when you click somewhere, you don't need SetCursorPos because the cursor is already there?
if you want to 'trap' the mouse between a RECT (can be 1 by 1, so looks unmovable), use ClipCursor, and if you ever want to hide it use ShowCursor.
If you need mouseclicking/moving (clipping not yet supported) made easy, download my class from
http://www.geocities.com/despotez/WH/