SINK_ENTRY_EX

SINK_ENTRY_EX( id, iid, dispid, fn )

Parameters

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.

Remarks

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

Example

BEGIN_SINK_MAP(CMyObj)
   SINK_ENTRY_EX(IDC_CIRCCTL1, CIRCLib::DIID__CircEvents, DISPID_CLICK,
      OnClick_CircCtrl1)
   SINK_ENTRY_EX(IDC_CIRCCTL2, CIRCLib::DIID__CircEvents, DISPID_CLICK,
      OnClick_CircCtrl2)
END_SINK_MAP()

ATL Macros and Global Functions

See Also

Composite Control Fundamentals, BEGIN_SINK_MAP, SINK_ENTRY