System.Win.ComObj.TConnectionPoints.CreateConnectionPoint
Delphi
function CreateConnectionPoint(const IID: TGUID; Kind: TConnectionKind; OnConnect: TConnectEvent): TConnectionPoint;
C++
TConnectionPoint* __fastcall CreateConnectionPoint(const GUID &IID, TConnectionKind Kind, TConnectEvent OnConnect);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Win.ComObj.pas System.Win.ComObj.hpp |
System.Win.ComObj | TConnectionPoints |
Description
Instantiates a connection point object.
CreateConnectionPoint is automatically called when an ActiveX control is initialized. CreateConnectionPoint creates and returns a connection point object. It passes to the connection point constructor:
- Itself as the connection point container.
- IID as the GUID or interface identifier of the outgoing interface managed by this connection point.
- OnConnect as the connection event used in the IConnectionPoint Advise method.
TConnectEvent is a pointer to a procedure for the OnConnect event of the connection point object being created. TConnectionKind is a type indicating whether there are multiple connections to that connection point.