diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-16 05:17:55 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-16 05:17:55 +0000 |
commit | 3e43f118619c384d0eb9e2436612bf842682035a (patch) | |
tree | aae26b1350dff32dadf28fba11b0b7aea75b784d /plugins | |
parent | 0c657d56336aa25e3c0ace6f5c3813ef79fbc67a (diff) |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TabSRMM/src/tabctrl.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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:
|