COX3DTabViewContainer::AddPage
BOOL AddPage(CRuntimeClass* pClass, CCreateContext* pContext, LPCTSTR lpszTitle=NULL, const int nImage=-1)
BOOL AddPage(CWnd* pWnd, LPCTSTR lpszTitle=NULL, const int nImage=-1)
Parameters
pClass |
Pointer to the runtime class information of the new window to be added as new page. |
pContext |
Pointer to context information (refer to the description of the CCreateContext class in the MFC documentation). |
pWnd |
Pointer to a created window to be added as a new page. |
lpszTitle |
Text that will be used as the page title for a tab button. |
nImage |
Index of the image in the image list associated with the container that will be set to the corresponding button. |
Return Value
TRUE if the new page was successfully added, otherwise FALSE.
Remarks
Adds a new page to a 3DTabView container. Use the first version of the function if you have to add a CView derived class that will be part of the document/view architecture of your application.