Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - ReportControl mouse overs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ReportControl mouse overs

 Post Reply Post Reply
Author
Message
mparedes View Drop Down
Newbie
Newbie


Joined: 30 May 2006
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote mparedes Quote  Post ReplyReply Direct Link To This Post Topic: ReportControl mouse overs
    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

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
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.125 seconds.