Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How do I catch a middle click from a tab?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I catch a middle click from a tab?

 Post Reply Post Reply
Author
Message
spiderM9 View Drop Down
Newbie
Newbie
Avatar

Joined: 21 October 2003
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote spiderM9 Quote  Post ReplyReply Direct Link To This Post Topic: How do I catch a middle click from a tab?
    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?
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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 July 2007 at 1:37am
Hello,
 
See Samples\ToolkitPro\MDITabWindow  sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
spiderM9 View Drop Down
Newbie
Newbie
Avatar

Joined: 21 October 2003
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote spiderM9 Quote  Post ReplyReply Direct Link To This Post Posted: 06 July 2007 at 4:01pm
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?
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 07 July 2007 at 3:04am
 
???
 
Just replace WM_RBUTTONDOWN to WM_MBUTTONDOWN in this sample.
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.031 seconds.