BCGSuite for MFC
BOOL CBCGPDiagramConnector::IsConnectedToSelection ( ) const

Tells whether this connector is linked to the currently selected diagram item(s).

Returns
TRUE if connected, FALSE if not.