CConnectionPoint::GetMaxConnections

virtual int GetMaxConnections( );

Return Value

The maximum number of connections supported by the control, or -1 if no limit.

Remarks

Called by the framework to retrieve the maximum number of connections supported by the connection point. The default implementation returns -1, indicating no limit.

Override this function if you want to limit the number of sinks that can connect to your control.

CConnectionPoint OverviewClass MembersHierarchy Chart

See Also   CConnectionPoint::GetConnections