Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C++ Mouse Event Listener

C++ Mouse Event Listener

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jonesap5
    wrote on last edited by
    #1

    I am trying to create an event listener for a left mouse button event in c++. Does anyone have any idea how to create this so that I can register the listener at the beginning and then when the event happens it will call a function of what I want to happen. If this makes no sense let me know. Thanks

    B 1 Reply Last reply
    0
    • J jonesap5

      I am trying to create an event listener for a left mouse button event in c++. Does anyone have any idea how to create this so that I can register the listener at the beginning and then when the event happens it will call a function of what I want to happen. If this makes no sense let me know. Thanks

      B Offline
      B Offline
      bob16972
      wrote on last edited by
      #2

      If VC++ 6.0, use the ClassWizard and set up a member function for WM_LBUTTONDOWN. If VC++ 7.1, don't use the Classwizard ('cause it 'taint there) and set a handler for WM_LBUTTONDOWN If your using VC .NET, I haven't the clue. It's too safe for me anyway.;P (In .NET it's probably in the System.Computer.Actions.Mouse.MouseActions.ButtonActions.PressedActions.LeftButton.Down namespace or something hideously long like that) -- modified at 20:25 Wednesday 12th April, 2006

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups