mfc - Unable to catch fired event from ATL Control into another ATL Control -


i have developed atl control have use in 3 projects (mfc, vb , atl control).

my atl control fires event when text in edit control has been edited.

i able catch event in mfc, vb , in main dialog class of atl control.

however have add control in dialog (not main dialog) in atl control. here not catch fired event.

the actual issue seems "idispeventimpl" not able sink correctly since in function in connection point class, getting size of m_vec empty. size of m_vec 4 when event works correctly.

can 1 me out this.

thanks.

my code in header file of dialog on control has been implemented.

#include <atlhost.h>  class cfactorprop :      public caxdialogimpl<cfactorprop>,     public idispeventimpl<idc_fpcontrol1, cfactorprop> {  public:     enum { idd = idd_factorprop };      begin_msg_map(cfactorprop)         chain_msg_map(caxdialogimpl[cfactorprop])     end_msg_map()      begin_sink_map(cfactorprop)         sink_entry(idc_fpcontrol1, 1, enableokbutton)     end_sink_map()      hresult __stdcall enableokbutton()     {         //messagebox("event fired", "test");     } }; 


Comments