Share via


CONNECTION_PART

This macro maps a connection point for your ActiveX control to a specific interface identifier.

For example:

BEGIN_CONNECTION_MAP(CSampleCtrl, COleControl)
    CONNECTION_PART(CSampleCtrl, IID_ISinkInterface, MyConnPt)
END_CONNECTION_MAP()

implements a connection map, with a connection point, that calls the IID_ISinkInterface interface .

CONNECTION_PART( theClass, iid, localClass )

Parameters

  • theClass
    Specifies the name of the control class whose connection point this is.
  • iid
    Specifies the interface ID of the interface called by the connection point.
  • localClass
    Specifies the name of the local class that implements the connection point.

Remarks

Add this macro to the header file of your class.

Requirements

**  Windows CE versions:** 2.0 and later
  Header file: Declared in Afxdisp.h
  Platform: H/PC Pro, Palms-size PC, Pocket PC

See Also

BEGIN_CONNECTION_MAP, DECLARE_CONNECTION_MAP, END_CONNECTION_MAP