BCGSuite for MFC
CBCGPDiagramItemID CBCGPDiagramVisualContainer::AddItem ( CBCGPBaseVisualObject pObject,
BOOL  bAutoDestroy = TRUE 
)

Adds a new diagram item to the container.

Parameters
pObjectA pointer to the new diagram item.
bAutoDestroySpecifies whether the diagram item should be destroyed automatically.
Returns
A diagram item identifier.