diff options
author | Mataes <mataes2007@gmail.com> | 2020-04-12 21:15:49 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2020-04-12 21:16:21 +0300 |
commit | 6f41baba87ba0b8b5405593eee27b1dfc40718a5 (patch) | |
tree | c6df4b958678c323d7d81a21bb3e92e37f9f5fe2 /plugins/NewStory/src/history.cpp | |
parent | f58ff97f5503e62a7418c6eaa8ce824d5e61342e (diff) |
NewStory: fix focus when search button click
Diffstat (limited to 'plugins/NewStory/src/history.cpp')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index f56797b16a..60792b9713 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -268,6 +268,8 @@ class CHistoryDlg : public CDlgBase ShowWindow(btnFindNext.GetHwnd(), cmd); ShowWindow(btnFindPrev.GetHwnd(), cmd); ShowWindow(edtSearchText.GetHwnd(), cmd); + if (cmd) + SetFocus(edtSearchText.GetHwnd()); } void LayoutHistoryWnd() @@ -593,6 +595,11 @@ public: Utils_SaveWindowPosition(m_hwnd, m_hContact, MODULENAME, "wnd_"); Window_FreeIcon_IcoLib(m_hwnd); WindowList_Remove(hNewstoryWindows, m_hwnd); + if (m_hwndStatus != nullptr) { + DestroyWindow(m_hwndStatus); + m_hwndStatus = nullptr; + } + } void onClick_Calendar(CCtrlButton *pButton) |