|
-
Nov 16th, 2000, 06:34 AM
#1
Thread Starter
Junior Member
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
VB and Java are great - ja, so ist es !! To my software programming site: http://www.majasoft-games.de .
-
Nov 16th, 2000, 07:54 AM
#2
Frenzied Member
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/
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|