System.Win.ComObj.TConnectionPoints.CreateConnectionPoint

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

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

C++

TConnectionPoint* __fastcall CreateConnectionPoint(const GUID &IID, TConnectionKind Kind, TConnectEvent OnConnect);

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TConnectionPoints

Description

Instancie un objet point de connexion.

La méthode CreateConnectionPoint est appelée automatiquement quand un contrôle ActiveX est initialisé. CreateConnectionPoint crée et renvoie un objet point de connexion. Elle transmet au constructeur du point de connexion :

  • Lui-même comme conteneur du point de connexion.
  • IID comme le GUID (ou identificateur d'interface) de l'interface de sortie gérée par ce point de connexion.
  • OnConnect comme l'événement de connexion utilisé dans la méthode Advise de IConnectionPoint.

TConnectEvent est un pointeur sur une procédure pour l'événement OnConnect de l'objet point de connexion créé. TConnectionKind est un type indiquant si ce point de connexion comporte plusieurs connexions.

Voir aussi