RAD Studio VCL Reference
|
TConnectionPoints implements the IConnectionPointContainer interface for a COM object that generates events on clients.
TConnectionPoints = class;
class TConnectionPoints;
AxCtrls
TConnectionPoints lets an object indicate the existence of outgoing interfaces (event interfaces). TConnectionPoints implements the IConnectionPointContainer interface, which clients use to register an interest in event notifications. COM wizards add a TConnectionPoints object as a class member to automatically generated classes that fire events on clients.
The IConnectionPoint interface provides access to an enumerator sub-object with the IEnumConnectionPoints interface. It also provides access to all the connection point sub-objects, each of which implements the IConnectionPoint interface. The IConnectionPoint interface provides access to an enumerator sub-object with the IEnumConnections interface.
TConnectionPoints objects are used to obtain access to:
An enumerator sub-object with the IEnumConnectionPoints interface. The IEnumConnectionPoints interface can be used to enumerate connection points for each outgoing IID.
Connection point sub-objects with the IConnectionPoint interface for each outgoing IID. Through the IConnectionPoint interface, a client starts or terminates an advisory loop with the connectable object and the client's own sink. The client can also use the IConnectionPoint interface to obtain an enumerator object with the IEnumConnections interface to enumerate the connections that it knows about.
Because the ActiveX wizard automatically sets up events for a control, users only need to use these interfaces directly when they wish to modify the standard VCL implementation or to add events to a non-ActiveX control automation server.
IConnectionPointContainer
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|