how to use msg reflection in WTL?

"goss0891" <[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
I'm always struggling with those reflections of msgs to child control, so i would like to clear things a bit, if someone can help me.

This is my scenario:

I have ActiveX control
   class ATL_NO_VTABLE CTestCtrl : 
    ...
this control has private member:
   CTabMessages myMessages;   

with declaration like this:
   class CTabMessages : public COwnerDrawnListViewCtrl<CTabMessages>

and drawlistview is defined like this:
  template <class TBase>
    class COwnerDrawnListViewCtrl : 
       public CWindowImpl<TBase,CListViewCtrl>, public COwnerDraw<TBase>

----
In main control CTestCtrl i've defined msg map like this:
   BEGIN_MSG_MAP(CTestCtrl)
	MESSAGE_HANDLER (WM_CREATE, OnCreate)
	CHAIN_MSG_MAP(CComControl<CTestCtrl>)
   END_MSG_MAP()

In CTabMessage
   BEGIN_MSG_MAP_EX(CTabMessages)
        MESSAGE_HANDLER (WM_CREATE, OnCreate)	
	REFLECTED_NOTIFY_CODE_HANDLER(NM_CLICK, OnClick) 
	CHAIN_MSG_MAP(COwnerDrawnListViewCtrl<CTabMessages>)
    END_MSG_MAP()

In COwnerDrawnListViewCtrl 
   BEGIN_MSG_MAP(COwnerDrawnListViewCtrl)
	CHAIN_MSG_MAP_ALT(COwnerDraw<TBase>, 1)
	DEFAULT_REFLECTION_HANDLER()
   END_MSG_MAP()


What else do i missing to process WM_DRAWITEM of CTabMessage control ?




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

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.