![]() |
How do I catch a middle click from a tab? |
Post Reply ![]() |
Author | |
spiderM9 ![]() Newbie ![]() ![]() Joined: 21 October 2003 Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() Posted: 02 July 2007 at 5:20pm |
I have a CMainFrame with tabbed MDI (CXTPTabClientWnd), and I'm trying to capture a middle click (when the user clicks on the mouse wheel button) on the tabs so that the document can be closed.
Can't find anywhere to wire this in. What's the best way?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
See Samples\ToolkitPro\MDITabWindow sample.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
spiderM9 ![]() Newbie ![]() ![]() Joined: 21 October 2003 Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
I'm not sure what you mean by this. The sample shows how to catch a right click context "Close" menu item, but that isn't what I need.
I need to catch a middle click, so that I can close the tab. I don't see anything at all related to a middle click. Where could I wire this in, or am I just missing something?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
???
Just replace WM_RBUTTONDOWN to WM_MBUTTONDOWN in this sample.
|
|
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 |