diff options
author | Mataes <mataes2007@gmail.com> | 2020-04-24 13:15:53 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2020-04-24 13:15:53 +0300 |
commit | 7c0f7e47299744f043ffb02ea22b538bc18af275 (patch) | |
tree | 38617caa0b7ba8899d2560f220b37e31836a6cf6 /plugins/NewStory | |
parent | 31295f842591810ada5055dd4b419a0e208f3f56 (diff) |
newstory: fixed work of calendar button
Diffstat (limited to 'plugins/NewStory')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 6d7f6a339f..56e814718d 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -606,9 +606,15 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM for (int i = 0; i < eventCount; i++) { auto *item = data->items.get(i, ELM_NOTHING); if (item->dbe.timestamp >= wParam) { + SendMessage(hwnd, NSM_SELECTITEMS2, i, i); SendMessage(hwnd, NSM_SETCARET, i, TRUE); break; } + if (i == eventCount - 1) + { + SendMessage(hwnd, NSM_SELECTITEMS2, i, i); + SendMessage(hwnd, NSM_SETCARET, i, TRUE); + } } } return TRUE; |