From d1a660dcebdaeca43201d695a7d22454b620521e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 4 Nov 2019 14:36:44 +0300 Subject: tabSRMM: - massive code cleaning; - fixes #2099 (TabSRMM: add tab scrolling by mouse wheel); - version bump --- plugins/TabSRMM/src/msgoptions.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src/msgoptions.cpp') diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp index 14e0f156dc..c75ceaa92f 100644 --- a/plugins/TabSRMM/src/msgoptions.cpp +++ b/plugins/TabSRMM/src/msgoptions.cpp @@ -478,9 +478,8 @@ public: ReloadTabConfig(); for (TContainerData* p = pFirstContainer; p; p = p->pNext) { - HWND hwndTab = GetDlgItem(p->m_hwnd, IDC_MSGTABS); - TabCtrl_SetPadding(hwndTab, xpad.GetPosition(), ypad.GetPosition()); - RedrawWindow(hwndTab, nullptr, nullptr, RDW_INVALIDATE | RDW_ERASE); + TabCtrl_SetPadding(p->m_hwndTabs, xpad.GetPosition(), ypad.GetPosition()); + ::RedrawWindow(p->m_hwndTabs, nullptr, nullptr, RDW_INVALIDATE | RDW_ERASE); } return true; } -- cgit v1.2.3