From 2d161955dabcb5a8a8b6069f94945ec7657805bf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 27 Mar 2017 00:35:25 +0300 Subject: fixes #777 (scrollbars disappeared from tabSRMM) --- plugins/TabSRMM/src/themes.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/TabSRMM/src/themes.cpp') diff --git a/plugins/TabSRMM/src/themes.cpp b/plugins/TabSRMM/src/themes.cpp index 749e08ab01..884f952efa 100644 --- a/plugins/TabSRMM/src/themes.cpp +++ b/plugins/TabSRMM/src/themes.cpp @@ -1930,7 +1930,7 @@ UINT CSkin::NcCalcRichEditFrame(HWND hwnd, const CTabBaseDlg *mwdat, UINT skinID ShowScrollBar(hwnd, SB_VERT, FALSE); } - LRESULT orig = (MyWndProc == nullptr) ? WVR_REDRAW : mir_callNextSubclass(hwnd, MyWndProc, msg, wParam, lParam); + LRESULT orig = mir_callNextSubclass(hwnd, MyWndProc, msg, wParam, lParam); if (mwdat == nullptr) return orig; @@ -1950,10 +1950,7 @@ UINT CSkin::NcCalcRichEditFrame(HWND hwnd, const CTabBaseDlg *mwdat, UINT skinID bReturn = TRUE; } ReleaseDC(GetParent(hwnd), hdc); - if (bReturn) - return WVR_REDRAW; - else - return orig; + return (bReturn) ? WVR_REDRAW : orig; } if ((mwdat->m_sendMode & SMODE_MULTIPLE || mwdat->m_sendMode & SMODE_CONTAINER || mwdat->m_bEditNotesActive || mwdat->m_sendMode & SMODE_SENDLATER) && skinID == ID_EXTBKINPUTAREA) { -- cgit v1.2.3