Print Page | Close Window

Notification Messages Not Received

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=14367
Printed Date: 29 September 2024 at 7:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Notification Messages Not Received
Posted By: thodgson
Subject: Notification Messages Not Received
Date 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 - http://www.ExclamationSoft.com )
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit



Replies:
Posted By: mgampi
Date Posted: 22 May 2009 at 5:34pm
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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: thodgson
Date Posted: 25 May 2009 at 8:42am
Thanks!  That helped.

-------------
Tim H( http://www.ExclamationSoft.com - http://www.ExclamationSoft.com )
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net