From 5a4407537893b87303bbad9129bd72c487f21a5b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 13 May 2021 22:55:18 +0300 Subject: code cleaning --- plugins/QuickSearch/src/options.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins/QuickSearch/src') diff --git a/plugins/QuickSearch/src/options.cpp b/plugins/QuickSearch/src/options.cpp index 2f4025dc70..b86d0a2ba3 100644 --- a/plugins/QuickSearch/src/options.cpp +++ b/plugins/QuickSearch/src/options.cpp @@ -430,10 +430,9 @@ public: wchar_t *pcw; int dx, rside; - HWND wSeparator = GetDlgItem(m_hwnd,IDC_B_RESIZE); RECT rc, rc1; GetClientRect(m_hwnd, &rc); - GetWindowRect(wSeparator, &rc1); + GetWindowRect(btnResize.GetHwnd(), &rc1); POINT pt = { rc1.left, 0 }; ScreenToClient(m_hwnd, &pt); @@ -453,10 +452,10 @@ public: pcw = L">"; } - SendMessageW(wSeparator, WM_SETTEXT, 0, LPARAM(pcw)); + btnResize.SetText(pcw); // move separator button - SetWindowPos(wSeparator,0,dx+2,2,0,0,SWP_NOSIZE | SWP_NOZORDER | SWP_SHOWWINDOW); + SetWindowPos(btnResize.GetHwnd(), 0, dx + 2, 2, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_SHOWWINDOW); // resize left side controls ResizeControl(IDC_LIST, dx); -- cgit v1.2.3