Results 1 to 2 of 2

Thread: SetCursorPos ??

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Posts
    29

    Question

    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 .

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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
  •  



Click Here to Expand Forum to Full Width