Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Notification Messages Not Received
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Notification Messages Not Received

 Post Reply Post Reply
Author
Message
thodgson View Drop Down
Groupie
Groupie


Joined: 11 August 2003
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote thodgson Quote  Post ReplyReply Direct Link To This Post Topic: Notification Messages Not Received
    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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
thodgson View Drop Down
Groupie
Groupie


Joined: 11 August 2003
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote thodgson Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2009 at 8:42am
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.266 seconds.