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. BEGIN_MESSAGE_MAP never called?

BEGIN_MESSAGE_MAP never called?

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
5 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.
  • B Offline
    B Offline
    bosfan
    wrote on last edited by
    #1

    Hi, i have this Problem in custom CHeaderCtrl control. My message map look like this: BEGIN_MESSAGE_MAP(CHeaderCtrlEx, CHeaderCtrl) // MACROS ON_WM_LBUTTONDOWN() ON_WM_MOUSEMOVE() ON_WM_LBUTTONDBLCLK() ON_REGISTERED_MESSAGE(WM_HDN_ENDDRAG, OnHdnEndDrag) END_MESSAGE_MAP() Now i want to send a message to this header control but they never received it, i never had this before so i don't know what cause this? In a example Project here from codeproject work this "custom header control" very nice, no problems, only in my project? So what to check, where can be my mistake, what im doing wrong?? Thanks for any help! regards bosfan

    L 1 Reply Last reply
    0
    • B bosfan

      Hi, i have this Problem in custom CHeaderCtrl control. My message map look like this: BEGIN_MESSAGE_MAP(CHeaderCtrlEx, CHeaderCtrl) // MACROS ON_WM_LBUTTONDOWN() ON_WM_MOUSEMOVE() ON_WM_LBUTTONDBLCLK() ON_REGISTERED_MESSAGE(WM_HDN_ENDDRAG, OnHdnEndDrag) END_MESSAGE_MAP() Now i want to send a message to this header control but they never received it, i never had this before so i don't know what cause this? In a example Project here from codeproject work this "custom header control" very nice, no problems, only in my project? So what to check, where can be my mistake, what im doing wrong?? Thanks for any help! regards bosfan

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Did you add DECLARE_MESSAGE_MAP[^] in your class definition?

      Veni, vidi, abiit domum

      B 2 Replies Last reply
      0
      • L Lost User

        Did you add DECLARE_MESSAGE_MAP[^] in your class definition?

        Veni, vidi, abiit domum

        B Offline
        B Offline
        bosfan
        wrote on last edited by
        #3

        Hi, thans for Answer, yes i have all in my class definition. It is the same project from: Here in Codeproject If i start this example all works fine, but not if i use this in a new project. Thanks bosfan

        L 1 Reply Last reply
        0
        • B bosfan

          Hi, thans for Answer, yes i have all in my class definition. It is the same project from: Here in Codeproject If i start this example all works fine, but not if i use this in a new project. Thanks bosfan

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          bosfan wrote:

          It is the same project from:
          Here in Codeproject

          It may be worth talking to the author then.

          bosfan wrote:

          If i start this example all works fine, but not if i use this
          in a new project.

          Check what you have done that is different, it may help to diagnose the problem.

          Veni, vidi, abiit domum

          1 Reply Last reply
          0
          • L Lost User

            Did you add DECLARE_MESSAGE_MAP[^] in your class definition?

            Veni, vidi, abiit domum

            B Offline
            B Offline
            bosfan
            wrote on last edited by
            #5

            Hi, i solved, of course, my mistake what else -.- I have a multiple inheritance of CHeaderCtrl and there was a fault. big sorry :( regards bosfan

            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