Notification Messages Not Received |
Post Reply |
Author | |
thodgson
Groupie Joined: 11 August 2003 Status: Offline Points: 78 |
Post Options
Thanks(0)
Posted: 22 May 2009 at 2:47pm |
I have a CXTPReportControl derived class which is in a tab within a view. The problem is that I'm not receiving the basic "click" notification messages in my derived control:
Declaration:
// Generated message map functions
//{{AFX_MSG(CWatchReportsCtrlBase) //}}AFX_MSG afx_msg void OnReportItemRClick(NMHDR * pNotifyStruct, LRESULT * result); afx_msg void OnReportItemDblClick(NMHDR * pNotifyStruct, LRESULT * result); afx_msg void OnReportItemClick(NMHDR * pNotifyStruct, LRESULT * result); DECLARE_MESSAGE_MAP() Definition:
BEGIN_MESSAGE_MAP(CWatchReportsCtrlBase, CXTPReportControl) //{{AFX_MSG_MAP(CWatchReportsCtrlBase) //}}AFX_MSG_MAP ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL, OnReportItemClick) ON_NOTIFY(NM_DBLCLK, XTP_ID_REPORT_CONTROL, OnReportItemDblClick) ON_NOTIFY(NM_RCLICK, XTP_ID_REPORT_CONTROL, OnReportItemRClick) END_MESSAGE_MAP() // Handles clicking ReportControl row.
// If "Checked" item is clicked, change "Checked" attribute for current record void CWatchReportsCtrlBase::OnReportItemClick(NMHDR * pNotifyStruct, LRESULT * /*result*/) ... Just looking for a little guidance on what I can check to figure out why it's not working.
|
|
Tim H(http://www.ExclamationSoft.com)
Product: Xtreme Toolkit v13.1 Platform: Vista(x64)-SP1 Language: Visual C++ 6.0 Currently: Satisfied w/ Toolkit |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi;
You should use ON_NOTIFY_REFLECT or ON_NOTIFY_REFLECT_EX macro if you want to catch it inside the control. |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
thodgson
Groupie Joined: 11 August 2003 Status: Offline Points: 78 |
Post Options
Thanks(0)
|
Thanks! That helped.
|
|
Tim H(http://www.ExclamationSoft.com)
Product: Xtreme Toolkit v13.1 Platform: Vista(x64)-SP1 Language: Visual C++ 6.0 Currently: Satisfied w/ Toolkit |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |