<< Return to Main Index

< Return to Class Index

CGXDTabWnd::CreateView

CWnd* CreateView(CRuntimeClass* pViewClass, LPCTSTR szLabel, CCreateContext* pContext = NULL, UINT nID = 0);

pViewClass

A pointer to the runtime class of the window to be created.

szLabel

A pointer to the string used as the name for the tab accocisted with this new window.

pContext

A pointer to the creation context.

nID

The id to be used to identify this new window.

Return Value

A pointer to the new added window. If the creation is not successful, it will be NULL.

Remarks

Call this function to create a new window to this tab window. The other method to add a window to this tab window is using AttachWnd method. Even though this method is called CreateView, the window is not required to be CView derived.

See Also

CGXDTabWnd::AttachWnd

CGXDTabWnd

Class Overview | Class Members