Vcl.AxCtrls.TConnectionPoints.CreateConnectionPoint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CreateConnectionPoint(const IID: TGUID; Kind: TConnectionKind;
OnConnect: TConnectEvent): TConnectionPoint;

Properties

Type Visibility Source Unit Parent
function public System.Win.ComObj.pas Vcl.AxCtrls 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.

See Also