BCGControlBar Pro for MFC
int CBCGPExpanderCtrl::AddDialog ( const CString &  strCaption,
UINT  nDlgResID,
CRuntimeClass *  pRTIDialog 
)

Adds a new dialog to the expander control.

Parameters
strCaptionThe dialog caption.
nDlgResIDThe dialog resource ID.
pRTIDialogThe dialog runtime class (should be specified with DECLARE_DYNCREATE and derived from CDialog class).
Returns
A zero-based index of the dialog in the container int.