Export (0) Print
Expand All
Expand Minimize

SINK_ENTRY_EX

Declares the handler function (fn) for the specified event (dispid), of the dispatch interface (iid), for the control identified by id.

SINK_ENTRY_EX( 
   id, 
   iid, 
   dispid, 
   fn  
)

id

[in] Identifies the control.

iid

[in] Identifies the dispatch interface.

dispid

[in] Identifies the specified event.

fn

[in] Name of the event handler function. This function must use the _stdcall calling convention and have the appropriate dispinterface-style signature.

BEGIN_SINK_MAP(CMyCompositCtrl2)
   //Make sure the Event Handlers have __stdcall calling convention
   SINK_ENTRY_EX(IDC_CALENDAR1, __uuidof(DCalendarEvents), DISPID_CLICK, 
      &CMyCompositCtrl2::ClickCalendar1)
   SINK_ENTRY_EX(IDC_CALENDAR2, __uuidof(DCalendarEvents), DISPID_CLICK, 
      &CMyCompositCtrl2::ClickCalendar2)
END_SINK_MAP()

CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods; any other return value is unsupported and its behavior is undefined.

Header: atlcom.h

Show:
© 2014 Microsoft