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

Adds a new dialog to the expander control.

Parameters
strCaptionThe dialog caption.
lpszDlgResNameThe dialog resource string.
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.