summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-08-10 21:48:36 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-08-10 21:48:36 +0300
commita7bc9b84c156418e20062f7724679045c074402b (patch)
tree12380172cb606c9e0d820486e5b6964dc8a534b5 /src/mir_core
parent29935a154644a5593330593166611aec4d225b27 (diff)
CCtrListView to notify the parent dialog about item change
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/CCtrlListView.cpp46
1 files changed, 25 insertions, 21 deletions
diff --git a/src/mir_core/src/CCtrlListView.cpp b/src/mir_core/src/CCtrlListView.cpp
index 0bad3056bb..5f4d18941f 100644
--- a/src/mir_core/src/CCtrlListView.cpp
+++ b/src/mir_core/src/CCtrlListView.cpp
@@ -34,27 +34,31 @@ 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;
- case LVN_BEGINRDRAG: OnBeginRDrag(&evt); return TRUE;
- case LVN_BEGINSCROLL: OnBeginScroll(&evt); return TRUE;
- case LVN_COLUMNCLICK: OnColumnClick(&evt); return TRUE;
- case LVN_DELETEALLITEMS: OnDeleteAllItems(&evt); return TRUE;
- case LVN_DELETEITEM: OnDeleteItem(&evt); return TRUE;
- case LVN_ENDLABELEDIT: OnEndLabelEdit(&evt); return TRUE;
- case LVN_ENDSCROLL: OnEndScroll(&evt); return TRUE;
- case LVN_GETDISPINFO: OnGetDispInfo(&evt); return TRUE;
- case LVN_GETINFOTIP: OnGetInfoTip(&evt); return TRUE;
- case LVN_HOTTRACK: OnHotTrack(&evt); return TRUE;
- case LVN_INSERTITEM: OnInsertItem(&evt); return TRUE;
- case LVN_ITEMACTIVATE: OnItemActivate(&evt); return TRUE;
- case LVN_ITEMCHANGED: OnItemChanged(&evt); return TRUE;
- case LVN_ITEMCHANGING: OnItemChanging(&evt); return TRUE;
- case LVN_KEYDOWN: OnKeyDown(&evt); return TRUE;
- case LVN_MARQUEEBEGIN: OnMarqueeBegin(&evt); return TRUE;
- case LVN_SETDISPINFO: OnSetDispInfo(&evt); return TRUE;
+ 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;
+ case LVN_BEGINRDRAG: OnBeginRDrag(&evt); return TRUE;
+ case LVN_BEGINSCROLL: OnBeginScroll(&evt); return TRUE;
+ case LVN_COLUMNCLICK: OnColumnClick(&evt); return TRUE;
+ case LVN_DELETEALLITEMS: OnDeleteAllItems(&evt); return TRUE;
+ case LVN_DELETEITEM: OnDeleteItem(&evt); return TRUE;
+ case LVN_ENDLABELEDIT: OnEndLabelEdit(&evt); return TRUE;
+ case LVN_ENDSCROLL: OnEndScroll(&evt); return TRUE;
+ case LVN_GETDISPINFO: OnGetDispInfo(&evt); return TRUE;
+ case LVN_GETINFOTIP: OnGetInfoTip(&evt); return TRUE;
+ case LVN_HOTTRACK: OnHotTrack(&evt); return TRUE;
+ case LVN_INSERTITEM: OnInsertItem(&evt); return TRUE;
+ case LVN_ITEMACTIVATE: OnItemActivate(&evt); return TRUE;
+ case LVN_ITEMCHANGING: OnItemChanging(&evt); return TRUE;
+ case LVN_KEYDOWN: OnKeyDown(&evt); return TRUE;
+ case LVN_MARQUEEBEGIN: OnMarqueeBegin(&evt); return TRUE;
+ case LVN_SETDISPINFO: OnSetDispInfo(&evt); return TRUE;
+
+ case LVN_ITEMCHANGED:
+ NotifyChange();
+ OnItemChanged(&evt);
+ return TRUE;
}
return FALSE;