diff options
author | aunsane <aunsane@gmail.com> | 2018-02-24 15:51:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-25 13:40:57 +0200 |
commit | 304d0d4271c081efd9dc9bc639f83a42e4f9bc03 (patch) | |
tree | a2aa6f7761eee3829f13be4a590fd581b86a0f64 | |
parent | a3805a0a6771e282026bf3c4783bea1cdba58556 (diff) |
core: added OnClick event to CCtrlListView
-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; |