Print Page | Close Window

How do I catch a middle click from a tab?

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=7508
Printed Date: 30 June 2025 at 11:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do I catch a middle click from a tab?
Posted By: spiderM9
Subject: How do I catch a middle click from a tab?
Date 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?
 



Replies:
Posted By: Oleg
Date Posted: 03 July 2007 at 1:37am
Hello,
 
See Samples\ToolkitPro\MDITabWindow  sample.


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


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


Posted By: Oleg
Date Posted: 07 July 2007 at 3:04am
 
???
 
Just replace WM_RBUTTONDOWN to WM_MBUTTONDOWN in this sample.


-------------
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