I would like to handle LVN_DELETEITEM in my subclass:
class DailyProgramListView :
public ATL::CWindowImpl<DailyProgramListView, WTL::CListViewCtrl, ATL::CWinTraitsOR<LVS_REPORT | LVS_SHOWSELALWAYS | LVS_SINGLESEL>>,
public WTL::CCustomListViewDraw<DailyProgramListView> {
BEGIN\_MSG\_MAP\_EX(DailyProgramListView)
MSG\_WM\_CREATE(OnCreate)
MSG\_WM\_SIZE(OnSize)
REFLECTED\_NOTIFY\_CODE\_HANDLER\_EX(LVN\_DELETEITEM, onDeleteItem)
NOTIFY\_CODE\_HANDLER\_EX(LVN\_DELETEITEM, onDeleteItem)
CHAIN\_MSG\_MAP\_ALT(WTL::CCustomListViewDraw<DailyProgramListView>, 1)
DEFAULT\_REFLECTION\_HANDLER()
END\_MSG\_MAP()
};
For some reason, the LVN_DELETEITEM is still only posted to the parent of the listview. The parent has REFLECT_NOTIFICATIONS_EX() in its MSGMAP.
Happy coding, Philipp Kursawe