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. Reflection Message Handler

Reflection Message Handler

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
3 Posts 3 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.
  • S Offline
    S Offline
    sankar
    wrote on last edited by
    #1

    Hi Can anyone explain me how to implement a Windows Message Handler ( Reflection ) - I have a Dialog box which has a CListCtrl & I would like the ListCtrl to handle the WM_MouseMove & not the dialog box. SO, I added a Windows Message Handler Using the class view for WM_MouseMove . Now, how can I pass this on to the CListCtrl?? it's like this: Class Sample is the dialog class. and the list control is placed inside this dialog box. void Sample :: OnMouseMove ( .. , .. ) { ???? } Any sample would be very useful. Thanks Sankar

    D T 2 Replies Last reply
    0
    • S sankar

      Hi Can anyone explain me how to implement a Windows Message Handler ( Reflection ) - I have a Dialog box which has a CListCtrl & I would like the ListCtrl to handle the WM_MouseMove & not the dialog box. SO, I added a Windows Message Handler Using the class view for WM_MouseMove . Now, how can I pass this on to the CListCtrl?? it's like this: Class Sample is the dialog class. and the list control is placed inside this dialog box. void Sample :: OnMouseMove ( .. , .. ) { ???? } Any sample would be very useful. Thanks Sankar

      D Offline
      D Offline
      Diarrhio
      wrote on last edited by
      #2

      I believe you have to derive a class from CListCtrl, and add the handler there. You can do all of this through ClassWizard. Let me know if you need more help.

      1 Reply Last reply
      0
      • S sankar

        Hi Can anyone explain me how to implement a Windows Message Handler ( Reflection ) - I have a Dialog box which has a CListCtrl & I would like the ListCtrl to handle the WM_MouseMove & not the dialog box. SO, I added a Windows Message Handler Using the class view for WM_MouseMove . Now, how can I pass this on to the CListCtrl?? it's like this: Class Sample is the dialog class. and the list control is placed inside this dialog box. void Sample :: OnMouseMove ( .. , .. ) { ???? } Any sample would be very useful. Thanks Sankar

        T Offline
        T Offline
        Tomasz Sowinski
        wrote on last edited by
        #3

        Do you want to handle WM_MOUSEMOVE received by dialog in CListCtrl-derived class? Why? Tomasz Sowinski -- http://www.shooltz.com

        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