BEGIN_MESSAGE_MAP never called?
-
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 -
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 -
Did you add
DECLARE_MESSAGE_MAP
[^] in your class definition?Veni, vidi, abiit domum
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
-
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
bosfan wrote:
It is the same project from:
Here in CodeprojectIt 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
-
Did you add
DECLARE_MESSAGE_MAP
[^] in your class definition?Veni, vidi, abiit domum