BCGControlBar Pro for MFC
int CBCGPExpanderCtrl::AddDialog ( const CString &  strCaption,
CDialog *  pDlg,
BOOL  bAutoDestroy = FALSE 
)

Adds a new dialog to the expander control.

Parameters
strCaptionThe dialog caption.
pDlgA pointer to the dialog to be added to the container.
bAutoDestroySpecifies wheher the dialog should be automatically destroyed.
Returns
A zero-based index of the dialog in the container int.