ReportControl mouse overs
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=4311
Printed Date: 21 November 2024 at 10:35pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: ReportControl mouse overs
Posted By: mparedes
Subject: ReportControl mouse overs
Date Posted: 30 May 2006 at 4:14pm
Hi, I've been trying to catch when a user mouses over a particular row with no success. I can catch mouse clicks no problem using: ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL, OnClick) but when I use: ON_NOTIFY(NM_HOVER, XTP_ID_REPORT_CONTROL, OnHover) I get no notification. Is there another way I can use to catch mouse overs on a particular cell/row/column? Thanks -martin
|
Replies:
Posted By: sserge
Date Posted: 04 June 2006 at 12:26pm
Hi Martin,
As an another way I can suggest you catching MouseMove message in your customized Report control class. Something like following:
class CMyReportControl : public CXTPReportControl { protected: DECLARE_MESSAGE_MAP()
afx_msg void OnMouseMove(UINT nFlags, CPoint point); }; ..................... BEGIN_MESSAGE_MAP(CMyReportControl, CXTPReportControl) //{{AFX_MSG_MAP(CMyReportControl) ON_WM_MOUSEMOVE() //}}AFX_MSG_MAP END_MESSAGE_MAP()
void CMyReportControl::OnMouseMove(UINT nFlags, CPoint point) { // ..use this->HitTest(point) to determine current row, item, etc CXTPReportControl::OnMouseMove(nFlags, point); }
|
-- WBR, Serge
|
|