Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C++ Win32 Lesson 7: Responding to Mouse Clicks

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
13,932
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 8, 2009

More at http://xoax.net
This C++ Win32 video tutorial shows how to write code to respond to mouse clicks. Code for the handling left or right mouse button down events is included. Added code available at
http://xoax.net/comp/cpp/win32/Lesson7.php

Please submit all questions to our forum:
http://xoax.net/forum/

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Top Comments

  • It's not hard. Just takes some effort to lean.

  • Anyone can learn to program within a couple of weeks. beyond that it takes a long time and alot of practice to become really really good.

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • @zdrgdr already figured out if you want get position of whole window:

    you need to use case WM_KEYDOWN: function and bin your key to it for example:

    search in google WM_KEYDOWN

  • i have a question: how to catch coordinates in whole screen not just program window ?

  • I got confused with the %i and wrote %1 too. Thanks for the tip!

  • @MagicalP0ny Yeah hard to lean with a bad leg.

  • >>> Auto Keybot <<<

    Fast, easy software automation - auto mouse click / auto keyboard.

    Check out the videos!

  • awesome!!!! and working  tutoriall you get a new suscriptor

  • @xoaxdotnet.. I followed the video carefully.. and I had an idea but I don't know how to realise it, cause I'm a beginer in C++..

    so.. I was thinking that we can read the coordinates of the first selection and a second selection, and put them as coordinates for a line as explained in lesson 4.. so u can "paint" lines just by clicking on two points and you don't have to see only the line that I've painted.. I don't know, can that be done? It would be cool... Looking forward to hearing from you

  • bluestone01 happen to me too, is because is %i and not %1 line 148

    To xoaxdotnet You are the real deal in these serial of tutorial that you made, men really good, give to the people should be your mojo , whatever it is, this kindness is appreciated for the illiterates and learning independent, really appreciate

  • Some help here... I copied the code for the WM_LBUTTONDOWN, but when i clicked the Left button it only popup the value of (, )

  • This doesn't look so hard, just five lines of code for each case . . .

    And they're not too complicated looking . . .

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more