From 6b496830f33360555adad192c4342d92bda458b1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 14 Jun 2018 16:55:24 +0300 Subject: WA_INACTIVE to be also passed to the current child --- plugins/TabSRMM/src/container.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins') 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; } -- cgit v1.2.3