![]() |
How to trap OnLButtonUp Message? |
Post Reply
|
| Author | |
prashant
Senior Member
Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
Post Options
Thanks(0)
Quote Reply
Topic: How to trap OnLButtonUp Message?Posted: 03 October 2007 at 7:16am |
|
Hi Oleg,
I had placed toolbar on Comandbar and implemented Drag and Drop Functionality. I am dragging an icon from Toolbar and Dropping it onto one of the views. I want to trap OnLButtonUp() message, what is the proper way of doing that? In earlier code it's working fine. Tried with IMPLEMENT_XTP_COMMANDBAR too but without success. My class CMCToolBar is derived from CXTPToolbar. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 October 2007 at 12:38pm |
|
Hi,
So what problem? Catch WM_LBUTTONDOWN and start drag ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
prashant
Senior Member
Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 October 2007 at 1:12am |
|
Hi Oleg,
We already trapped OnLButtonDown() message and start to Drag. Now I am dropping the dragged contents on another view, in this case how to trap OnLButtonUp() message. With previous implementation (CXTToolBar) we are doing this successfully. Now we replaced it with CXTPToolBar. |
|
![]() |
|
prashant
Senior Member
Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 October 2007 at 4:30am |
|
Hi Oleg,
Just solved the problem. Previously hierarchy: CXTToolBar -> CXTControlBar -> CControlBar Current hierarchy: CXTPToolBar -> CXTCommandBar -> CWnd So need to to take care of Base class as per new hierarchy. Does that make sense? Thanks for your help ![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 October 2007 at 5:03am |
|
ok :)
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |