BCGControlBar Pro for MFC
void CBCGPDiagramVisualObject::SetAutoDestroy ( BOOL  bAutoDestroy)

Specifies whether the diagram object should be destroyed automatically.

Parameters
bAutoDestroyTRUE to automatically destroy.