handling mouse events in c++

This is a discussion on handling mouse events in c++ within the C++ Programming forums, part of the General Programming Boards category; hi folks, I want to be able to detect mouse cursor position when it's been dragged or pressed(not in any ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    5

    handling mouse events in c++

    hi folks,
    I want to be able to detect mouse cursor position when it's been dragged or pressed(not in any particular window, but on the screen), how can this be done? Can someone provide me with some sample code/links?
    any guidance is appreciated

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    This can be done but it is OS specific. In windows it is a little trickier doing this for the entire screen but not impossible.

  3. #3
    Registered User
    Join Date
    Dec 2002
    Posts
    5
    thanks, how would you do this windows? can you provide me with some samples?
    thanks

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Well I could, but it is a mouthful. Especially if you don't have any prior experience with the win api. How about learning some basic win api programming first.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mouse Events
    By tezcatlipooca in forum Windows Programming
    Replies: 2
    Last Post: 01-24-2008, 02:33 PM
  2. Mouse Events
    By disruptor108 in forum C# Programming
    Replies: 0
    Last Post: 01-23-2007, 11:40 PM
  3. API for mouse events?
    By jsimpson in forum C Programming
    Replies: 0
    Last Post: 03-08-2006, 11:38 PM
  4. capturing mouse events
    By leojose in forum Windows Programming
    Replies: 7
    Last Post: 06-06-2005, 11:36 PM
  5. Mouse Events
    By Jubba in forum Windows Programming
    Replies: 1
    Last Post: 10-30-2003, 12:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21