BCGControlBar Pro for MFC
int CBCGPTabView::AddView ( CRuntimeClass *  pViewClass,
const CString &  strViewLabel,
int  iIndex = -1,
CCreateContext *  pContext = NULL 
)

Adds a new view to the tab control.

Returns
A view index if successful, otherwise -1.

Call this function to add a new view to the tab control that embedded to a frame.

Parameters
pViewClassA pointer to a runtime class of the inserted view.
strViewLabelSpecifies the tab's text.
iIndexSpecifies the zero-based position to insert at. If the position is -1 the new tab at the end.
pContextThe create context of the view.