Поделиться через


END_SINK_MAP

Declares the end of the event sink map for the composite control.

END_SINK_MAP( )

Пример

BEGIN_SINK_MAP(CMyCompositeCtrl)
   //Make sure the Event Handlers have __stdcall calling convention
   SINK_ENTRY(IDC_CALENDAR1, DISPID_CLICK, &CMyCompositeCtrl::ClickCalendar1)
   SINK_ENTRY(IDC_CALENDAR2, DISPID_CLICK, &CMyCompositeCtrl::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

См. также

Основные понятия

Composite Control Macros

ATL Macros

Composite Control Fundamentals

BEGIN_SINK_MAP

SINK_ENTRY