If you are creating a new MFC application (with the MFC Feature Pack) and using all the default values, click Finish. He creates an MDI application with a new style of Documents with Tabs.

I think this is great, except that it annoys me that I cannot close the tabbed document window by clicking on the tab with the middle mouse button.
This is possible in Firefox, IE, Chrome and, more importantly, in VS2008 . But pressing the middle button on the tab does nothing.
I can't figure out how to override the tab bar to let me handle the message ON_WM_MBUTTONDOWN. Any ideas?
Edit : I think I need to create a subclass of CMFCTabCtrl returned from CMDIFrameWndEx :: GetMDITabs ...
source
share