Print Page | Close Window

How to trap OnLButtonUp Message?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8276
Printed Date: 13 November 2025 at 9:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to trap OnLButtonUp Message?
Posted By: prashant
Subject: How to trap OnLButtonUp Message?
Date 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.




Replies:
Posted By: Oleg
Date Posted: 03 October 2007 at 12:38pm
Hi,
So what problem? Catch WM_LBUTTONDOWN and start drag ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: prashant
Date 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.



Posted By: prashant
Date 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


Posted By: Oleg
Date Posted: 04 October 2007 at 5:03am
ok :)

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net