summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history.cpp
diff options
context:
space:
mode:
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);