Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How can I set OnLButtonUp for cell?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can I set OnLButtonUp for cell?

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


Joined: 09 January 2007
Location: Ukraine
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote andrey Quote  Post ReplyReply Direct Link To This Post Topic: How can I set OnLButtonUp for cell?
    Posted: 09 January 2007 at 9:24am
 
 
I derived from CXTPReportControl and Report Row classes and owerwrote virtual functoins

CXTPReportControl::CreateRow()

and

CXTPReportRow ::OnLButtonDown

 

But there is no virtual CXTPReportRow ::OnLButtonUp

How can I set OnLButtonUp for a cell, or just for control. Is it possible?
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: 11 January 2007 at 6:20pm
You can use CXTPReportRow::OnClick
 
Or Create derived class and add message handler ON_WM_LBUTTONUP()
 
See Also implementation of CXTPReportControl::OnLButtonUp

--
WBR,
Serge
Back to Top
TerryT View Drop Down
Newbie
Newbie


Joined: 31 August 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote TerryT Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2007 at 1:03pm

Hi Serge,
I have a class derived from CXTPReportView, and get all messages in the map below except for ON_WM_LBUTTONUP()

I’m attempting to detect a click off of any of the report items so I can remove focus/highlighting of the selected report row – ie, a click on the whitespace below the report items.

Please advise…
Thank you!

BEGIN_MESSAGE_MAP(CTaskListView, CXTPReportView)
 ON_WM_CREATE()
 ON_WM_SIZE()
 ON_COMMAND(ID_ADD_TASK, OnAddTask)
 ON_COMMAND(ID_REMOVE_TASK, OnRemoveTask)
 ON_UPDATE_COMMAND_UI(ID_ADD_TASK, OnUpdateAddTask)
 ON_UPDATE_COMMAND_UI(ID_REMOVE_TASK, OnUpdateRemoveTask)
 ON_NOTIFY(XTP_NM_REPORT_INPLACEBUTTONDOWN, XTP_ID_REPORT_CONTROL, OnReportButtonClick)
 ON_NOTIFY(XTP_NM_REPORT_VALUECHANGED, XTP_ID_REPORT_CONTROL, OnReportValueChanged)
 ON_NOTIFY(NM_RCLICK, XTP_ID_REPORT_CONTROL, OnReportItemRClick)
 ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL, OnReportItemClick)
 ON_WM_LBUTTONUP()
END_MESSAGE_MAP()

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: 12 February 2007 at 3:29pm
CXTPReportView is derived from CView.
 
You have to catch ON_WM_LBUTTONUP() in CXTPReportControl derived class.
 
CXTPReportControl is created as a child window in CXTPReportView and you  have no chances to click on CXTPReportView, because this report child window takes all view area

--
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.234 seconds.