Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to trap OnLButtonUp Message?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to trap OnLButtonUp Message?

 Post Reply Post Reply
Author
Message
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2007 at 12:38pm
Hi,
So what problem? Catch WM_LBUTTONDOWN and start drag ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 October 2007 at 5:03am
ok :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.063 seconds.