summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/m_gui.h1
-rw-r--r--src/mir_core/src/CCtrlTreeView.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/m_gui.h b/include/m_gui.h
index e29ffe7b63..2f0a05baf3 100644
--- a/include/m_gui.h
+++ b/include/m_gui.h
@@ -1271,6 +1271,7 @@ public:
CCallback<TEventInfo> OnItemExpanded;
CCallback<TEventInfo> OnItemExpanding;
CCallback<TEventInfo> OnKeyDown;
+ CCallback<TEventInfo> OnRightClick;
CCallback<TEventInfo> OnSelChanged;
CCallback<TEventInfo> OnSelChanging;
CCallback<TEventInfo> OnSetDispInfo;
diff --git a/src/mir_core/src/CCtrlTreeView.cpp b/src/mir_core/src/CCtrlTreeView.cpp
index 4c7daa0cfd..f4cc156483 100644
--- a/src/mir_core/src/CCtrlTreeView.cpp
+++ b/src/mir_core/src/CCtrlTreeView.cpp
@@ -253,6 +253,7 @@ BOOL CCtrlTreeView::OnNotify(int, NMHDR *pnmh)
TEventInfo evt = { this, pnmh };
switch (pnmh->code) {
+ case NM_RCLICK: OnRightClick(&evt); return TRUE;
case TVN_BEGINLABELEDIT: OnBeginLabelEdit(&evt); return TRUE;
case TVN_BEGINRDRAG: OnBeginRDrag(&evt); return TRUE;
case TVN_DELETEITEM: OnDeleteItem(&evt); return TRUE;