From fce74dd894a33bc169d0be75b789a0606aae8474 Mon Sep 17 00:00:00 2001 From: Don HO Date: Wed, 6 Nov 2019 00:55:03 +0100 Subject: [PATCH] Revert "Fix multi-line tab button stay pushed issue while swiching off." This reverts commit 8342da3df8009f8d76d1d4990f3b5695eae88dd8 to fix a regression (#7509) which has been done to fix #3545. Fix #7509 --- PowerEditor/src/WinControls/TabBar/TabBar.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.cpp b/PowerEditor/src/WinControls/TabBar/TabBar.cpp index 2a6bf742..70f8d47c 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.cpp +++ b/PowerEditor/src/WinControls/TabBar/TabBar.cpp @@ -152,16 +152,7 @@ void TabBar::setFont(const TCHAR *fontName, int fontSize) void TabBar::activateAt(int index) const { if (getCurrentTabIndex() != index) - { - // TCM_SETCURFOCUS is busted on WINE/ReactOS for single line (non-TCS_BUTTONS) tabs... - // We need it on Windows for multi-line tabs or multiple tabs can appear pressed. - if (::GetWindowLongPtr(_hSelf, GWL_STYLE) & TCS_BUTTONS) - { - ::SendMessage(_hSelf, TCM_SETCURFOCUS, index, 0); - } - ::SendMessage(_hSelf, TCM_SETCURSEL, index, 0); - } TBHDR nmhdr; nmhdr._hdr.hwndFrom = _hSelf;