COX3DTabViewContainer::InsertPage

Dundas

COX3DTabViewContainer::InsertPage

Class Members | Overview

virtual BOOL InsertPage(const int nIndex, CRuntimeClass* pClass, CCreateContext* pContext, LPCTSTR lpszTitle=NULL, const int nImage=1)
virtual BOOL InsertPage(const int nIndex, CWnd* pWnd, LPCTSTR lpszTitle=NULL, const int nImage=1)

Parameters

nIndex

Zero-based index of the page to be added.

pClass

Pointer to the runtime class information of the new window to be added.

pContext

Pointer to context information (refer to the description of the CCreateContext class in the MFC documentation).

pWnd

Pointer to the created window to be inserted as the new page.

lpszTitle

The text that will be used as the page title in a tab button.

nImage

Index of the image in the image list (which is associated with the container) that will be used for the corresponding button.

Return Value

TRUE if the new page was successfully inserted, otherwise FALSE.

Remarks

Inserts a new page into a 3DTabViewContainer. Use the first version of the function if you have to insert a CView derived class which is part of the document/view architecture of your application.