![]() |
How can I set OnLButtonUp for cell? |
Post Reply ![]() |
Author | |
andrey ![]() Newbie ![]() Joined: 09 January 2007 Location: Ukraine Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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? |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
You can use CXTPReportRow::OnClick
Or Create derived class and add message handler ON_WM_LBUTTONUP() See Also implementation of CXTPReportControl::OnLButtonUp -- WBR, Serge |
|
![]() |
|
TerryT ![]() Newbie ![]() Joined: 31 August 2006 Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() |
Hi Serge, 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… BEGIN_MESSAGE_MAP(CTaskListView, CXTPReportView) |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |