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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to get mouse event notification?

How to get mouse event notification?

Scheduled Pinned Locked Moved C / C++ / MFC
data-structurestutorialquestion
2 Posts 2 Posters 1 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.
  • M Offline
    M Offline
    mikert_2008
    wrote on last edited by
    #1

    Hi, I have a dialog based application. I have added the tree control on it. The tree implementation is done in separate class. I am getting the mouse click event in the class where I implemented tree control. I want the mouse click event to pass to dialog class i.e ..dlg to do some other operation. How to do this? Thanks:- Mike

    S 1 Reply Last reply
    0
    • M mikert_2008

      Hi, I have a dialog based application. I have added the tree control on it. The tree implementation is done in separate class. I am getting the mouse click event in the class where I implemented tree control. I want the mouse click event to pass to dialog class i.e ..dlg to do some other operation. How to do this? Thanks:- Mike

      S Offline
      S Offline
      ShiXiangYang
      wrote on last edited by
      #2

      You can insert below code to treectrl's mouse event function. #include "YourDlg.h" CYourDlg*dlg=(CYourDlg*)AfxGetMainWnd(); dlg->'Your function in your dialog class'

      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