Horizontal scrolling with Shift + MouseWheel (#1865795)
Installer: Add support for integration with latest version of TortoiseCVS and
TortoiseSVN x64 (#1865168)
+ Close file compare tab with middle mouse button (#1865220)
BugFix: Crash when using TrackPoint middle-button scrolling (#1864040)
BugFix: WinMerge didn't show the contents of the symbolic link target (#1864978)
BugFix: Unused registry key HKCU\Thingamahoochie\WinMerge was created
*
* @brief Implementation of the MDITabBar class
*/
-// RCS ID line follows -- this is updated by CVS
+// ID line follows -- this is updated by SVN
// $Id$
#include "stdafx.h"
BEGIN_MESSAGE_MAP(CMDITabBar, CControlBar)
//{{AFX_MSG_MAP(CMDITabBar)
+ ON_WM_MBUTTONDOWN()
ON_WM_CONTEXTMENU()
ON_WM_PAINT()
ON_NOTIFY_REFLECT_EX(TCN_SELCHANGE, OnSelchange)
}
}
}
+
+/**
+ * @brief Called when middle mouse button is pressed.
+ * This function closes the tab when the middle mouse button is pressed.
+ */
+void CMDITabBar::OnMButtonDown(UINT nFlags, CPoint point)
+{
+ TCHITTESTINFO hit;
+ hit.pt = point;
+ int index = HitTest(&hit);
+ if (index < 0)
+ return;
+
+ TCITEM tci;
+ tci.mask = TCIF_PARAM;
+ GetItem(index, &tci);
+ CWnd* pMDIChild = FromHandle((HWND)tci.lParam);
+ pMDIChild->SendMessage(WM_SYSCOMMAND, SC_CLOSE);
+}
* @brief Declaration file for MDITabBar
*
*/
-// RCS ID line follows -- this is updated by CVS
+// ID line follows -- this is updated by SVN
// $Id$
#ifndef MDITABBAR_H
afx_msg void OnPaint();
afx_msg BOOL OnSelchange(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
+ afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};