From 3e43f118619c384d0eb9e2436612bf842682035a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 16 Jul 2013 05:17:55 +0000 Subject: if Close button on tabs activated then double click not close tabs git-svn-id: http://svn.miranda-ng.org/main/trunk@5378 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/tabctrl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/src/tabctrl.cpp b/plugins/TabSRMM/src/tabctrl.cpp index fb4b8069b5..a21eb9f49c 100644 --- a/plugins/TabSRMM/src/tabctrl.cpp +++ b/plugins/TabSRMM/src/tabctrl.cpp @@ -1146,8 +1146,11 @@ static LRESULT CALLBACK TabControlSubclassProc(HWND hwnd, UINT msg, WPARAM wPara break; case WM_LBUTTONDBLCLK: - GetCursorPos(&pt); - SendMessage(GetParent(hwnd), DM_CLOSETABATMOUSE, 0, (LPARAM)&pt); + if (!(tabdat->pContainer->settings->dwFlagsEx & TCF_CLOSEBUTTON)) + { + GetCursorPos(&pt); + SendMessage(GetParent(hwnd), DM_CLOSETABATMOUSE, 0, (LPARAM)&pt); + } break; case WM_RBUTTONDOWN: -- cgit v1.2.3