summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2020-04-23 21:12:39 +0300
committerMataes <mataes2007@gmail.com>2020-04-23 21:12:39 +0300
commit3ef977ed7d0811401a0b7bff64711bdb5837debd (patch)
treece6fbc30cb9b67d2ab4bedafbd51216468399209 /plugins/NewStory/src/history.cpp
parent15710bfdbed4b6d9d7493cdbe39033ae43e8036e (diff)
newstory: try to fix calendar
Diffstat (limited to 'plugins/NewStory/src/history.cpp')
-rw-r--r--plugins/NewStory/src/history.cpp11
1 files changed, 8 insertions, 3 deletions
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);