BCGControlBar Pro for MFC
BOOL CBCGPProp::AddSubItem ( CBCGPProp pProp,
int  nInsertAt = -1 
)

Adds a child item to the specifies property

Returns
TRUE if the new sub-property has been added successfully; FALSE if the same property does exist in the list of sub-items.

Call this function to add a sub-property to the specified property creating the hierarchical list of properties. The parent property becomes expandable and the property list control automatically displays a "plus" sign giving the ability to expand the item.

Parameters
pPropSpecifies the sub-property to be added.
nInsertAtSpecifies the position of the sub-property. If this parameter is less than zero, the sub-item will be added to the end.