summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/container.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-06-14 16:55:24 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-06-14 16:55:24 +0300
commit6b496830f33360555adad192c4342d92bda458b1 (patch)
tree5a33de4f0b964596625fa34341d30a269be68b64 /plugins/TabSRMM/src/container.cpp
parent2b5922a413634e236585bc9039450974f8ab2268 (diff)
WA_INACTIVE to be also passed to the current child
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r--plugins/TabSRMM/src/container.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp
index 75d43b60f5..434132d3d3 100644
--- a/plugins/TabSRMM/src/container.cpp
+++ b/plugins/TabSRMM/src/container.cpp
@@ -1322,6 +1322,14 @@ panel_found:
if (LOWORD(wParam) != WA_ACTIVE) {
pContainer->MenuBar->Cancel();
+
+ int curItem = TabCtrl_GetCurSel(hwndTab);
+ if (curItem >= 0) {
+ TCITEM item;
+ tci.mask = TCIF_PARAM;
+ TabCtrl_GetItem(hwndTab, curItem, &item);
+ SendMessage((HWND)item.lParam, WM_ACTIVATE, WA_INACTIVE, 0);
+ }
break;
}