diff options
-rw-r--r-- | include/m_gui.h | 1 | ||||
-rw-r--r-- | src/mir_core/src/CCtrlListView.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/m_gui.h b/include/m_gui.h index 0a1dfc2025..3d5ab2a7fb 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -1109,6 +1109,7 @@ public: CCallback<TEventInfo> OnColumnClick;
CCallback<TEventInfo> OnDeleteAllItems;
CCallback<TEventInfo> OnDeleteItem;
+ CCallback<TEventInfo> OnClick;
CCallback<TEventInfo> OnDoubleClick;
CCallback<TEventInfo> OnEndLabelEdit;
CCallback<TEventInfo> OnEndScroll;
diff --git a/src/mir_core/src/CCtrlListView.cpp b/src/mir_core/src/CCtrlListView.cpp index 3977238a14..f627ee0b3a 100644 --- a/src/mir_core/src/CCtrlListView.cpp +++ b/src/mir_core/src/CCtrlListView.cpp @@ -34,6 +34,7 @@ BOOL CCtrlListView::OnNotify(int, NMHDR *pnmh) TEventInfo evt = { this, pnmh }; switch (pnmh->code) { + case NM_CLICK: OnClick(&evt); return TRUE; case NM_DBLCLK: OnDoubleClick(&evt); return TRUE; case LVN_BEGINDRAG: OnBeginDrag(&evt); return TRUE; case LVN_BEGINLABELEDIT: OnBeginLabelEdit(&evt); return TRUE; |