From 3ef977ed7d0811401a0b7bff64711bdb5837debd Mon Sep 17 00:00:00 2001 From: Mataes Date: Thu, 23 Apr 2020 21:12:39 +0300 Subject: newstory: try to fix calendar --- plugins/NewStory/src/history.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'plugins/NewStory/src/history.cpp') diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index b55c9318ce..b94fad88da 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -607,9 +607,7 @@ public: RECT rc; GetWindowRect(pButton->GetHwnd(), &rc); - time_t tm_jump = CalendarTool_Show(m_hwnd, rc.left, rc.bottom); - if (tm_jump) - m_histControl.SendMsg(NSM_SEEKTIME, tm_jump, 0); + CalendarTool_Show(m_hwnd, rc.left, rc.bottom); } void onClick_Copy(CCtrlButton *) @@ -831,6 +829,13 @@ public: // SendMessage(GetDlgItem(m_hwnd, IDC_ITEMS), LB_SELITEMRANGE, FALSE, MAKELPARAM(0,eventCount)); // SendMessage(GetDlgItem(m_hwnd, IDC_ITEMS), LB_SELITEMRANGE, TRUE, MAKELPARAM(id,id)); // break; + + case WM_USER + 0x600: + { + time_t tm_jump = (time_t)wParam; + if (tm_jump) + m_histControl.SendMsg(NSM_SEEKTIME, tm_jump, 0); + } } return CDlgBase::DlgProc(msg, wParam, lParam); -- cgit v1.2.3