diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-13 22:55:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-13 22:55:18 +0300 |
commit | 5a4407537893b87303bbad9129bd72c487f21a5b (patch) | |
tree | 84d7fddb92c0141138a6f241833d5eaf4fb57a5d /plugins | |
parent | cbce7498c1630060ae345e7b9058e180155d76d1 (diff) |
code cleaning
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/QuickSearch/src/options.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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); |