BOOL Create(CWnd* pParentWnd, LPCTSTR szFirstLabel,CCreateContext* pContext, DWORD dwStyle = WS_CHILD | WS_VISIBLE |WS_HSCROLL | WS_VSCROLL,DWORD dwExStyle = WS_EX_CLIENTEDGE,UINT nID = AFX_IDW_PANE_FIRST);
pParentWnd
A pointer to the parent window. It should not be NULL.
szFirstLabel
A pointer to the string for the name of the tab associated with the new window.
pContext
A pointer to creation context. It is usually the same pointer passed in from OnCreateClient method of CFrameWnd class. But it can be changed to any other window runtime class.
dwStyle
Style of this tab window.
dwExStyle
Extended window style for this tab window. If the extended style contains WS_EX_CLIENTEDGE style, the WS_EX_CLIENTEDGE extended style will be removed.
nID
The id to be used to identify this window.
Return TRUE if the creation is successful, otherwise return FALSE.
Call this function to create this tab window. It will automatically create a new window for it's first tab. This runtime class of the new window must be specified in the creation context structure.
Class Overview | Class Members