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.

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