diff options
author | Mataes <mataes2007@gmail.com> | 2020-05-01 19:19:34 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2020-05-01 19:19:48 +0300 |
commit | 504c7a76bb9b10c6ccb7883693661ef5d085c686 (patch) | |
tree | ba663888decd48089a89aa9e752602da56205cc1 /plugins | |
parent | c07739c95595eca57dcf2651f42511ac87c45a3b (diff) |
newhistory: function for context menu
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index d00839b515..822ba6c3eb 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -367,6 +367,8 @@ public: edtSearchText.OnChange = Callback(this, &CHistoryDlg::onChange_SearchText); + m_histControl.OnBuildMenu = Callback(this, &CHistoryDlg::OnContextMenu); + btnCopy.OnClick = Callback(this, &CHistoryDlg::onClick_Copy); btnExport.OnClick = Callback(this, &CHistoryDlg::onClick_Export); btnDelete.OnClick = Callback(this, &CHistoryDlg::onClick_Delete); @@ -785,6 +787,12 @@ public: PostMessage(m_hwnd, UM_REBUILDLIST, 0, 0); } + void OnContextMenu(CCtrlBase*) + { + RECT rc; + GetWindowRect(m_histControl.GetHwnd(), &rc); + } + INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) override { if ((msg >= NSM_FIRST) && (msg < NSM_LAST)) { |