SECTabWnd::InsertTab

Inserts a new tab into the tabbed window.

Defined in: tabwnd.cpp

Syntax

InsertTab(CWnd* pWnd, int nIndex, LPCTSTR lpszLabel);

InsertTab(CRuntimeClass* pViewClass, int nIndex, LPCTSTR lpszLabel, CCreateContext* pContext = NULL, UINT nID = -1);

Return Value

Pointer to an SECTab object representing the new tab.

Parameters

pWnd

Pointer to window to be inserted.

nIndex

Position to insert into.

lpszLabel

Tab label for new tab.

pViewClass

Runtime class of new tab to create.

pContext

CCreateContext in which to create new instance of pViewClass.

nID

ID of child view created by InsertTab (i.e., ID of the new tab).

See Also

SECTabWnd