Handling LVN_DELETEITEM in directly in subclass

Philipp Kursawe <[email protected]> Tue, 12 Apr 2011 14:18:29 +0200
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
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.

Any ideas?

Thanks,
Phil


[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/