Share via


CConnectionPoint::GetMaxConnections

Called by the framework to retrieve the maximum number of connections supported by the connection point.

virtual int GetMaxConnections( );

Return Value

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

Remarks

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.

Requirements

Header: afxdisp.h

See Also

Reference

CConnectionPoint Class

Hierarchy Chart

CConnectionPoint::GetConnections

Other Resources

CConnectionPoint Members