共用方式為


CMDIFrameWndEx::MDITabNewGroup

Creates a new tabbed group that has a single window.

void MDITabNewGroup(
   BOOL bVert=TRUE 
);

Parameters

  • [in] bVert
    Specifies the new group alignment. If TRUE, the new group is aligned vertically. If FALSE, the new group is aligned horizontally.

Remarks

Use this function to create a new tabbed window (new tabbed group) and add the first tab to it.

Example

The following example shows how MDITabNewGroup is used in the VisualStudioDemo Sample: MFC Visual Studio Application.

void CMainFrame::OnMdiNewHorzTabGroup()
{
    MDITabNewGroup(FALSE);
}

Requirements

Header: afxMDIFrameWndEx.h

See Also

Reference

CMDIFrameWndEx Class

Hierarchy Chart