BCGControlBar Pro for MFC
BOOL CBCGPDiagramConnector::Connect ( CBCGPDiagramVisualObject pObject1,
CBCGPDiagramVisualObject pObject2,
UINT  ConnectionPortId1 = CP_Center,
UINT  ConnectionPortId2 = CP_Center 
)

Connects two diagram items.

Parameters
pObject1A pointer to the first diagram item.
pObject2A pointer to the second diagram item.
ConnectionPortId1The first diagram item connection port (CBCGPDiagramVisualObject::ConnectionPorts).
ConnectionPortId2The second diagram item connection port (CBCGPDiagramVisualObject::ConnectionPorts).
Returns
TRUE if it succeeds, FALSE if it fails.