BCGSuite for MFC
BOOL CBCGPVisualContainer::InsertAt ( CBCGPBaseVisualObject pObject,
int  nIndex,
BOOL  bAutoDestroy = TRUE 

Adds a new child visual object to the container at the specific position.

pObjectA pointer to the visual object.
nIndexThe index in the child objects internal array.
bAutoDestroySpecifies whether the object should be destroyed automatically.
TRUE if it succeeds, FALSE if it fails.