CMDIFrameWndEx::TabbedDocumentToControlBar

将指定的选项卡式文档到停靠窗格中。

virtual BOOL TabbedDocumentToControlBar(
   CMDIChildWndEx* pMDIChildWnd 
);

参数

  • pMDIChildWnd
    指针到MDI包含停靠窗格的子窗口。

返回值

TRUE,如果方法成功,在失败时进行 FALSE。

备注

使用此方法将选项卡式文档到停靠窗格中。 使用 CMDIFrameWndEx::ControlBarToTabbedDocument,选项卡式文档必须已创建了。

示例

下面的示例演示 TabbedDocumentToControlBar 如何在 VisualStudioDemo示例:MFC Visual Studio应用程序

void CMainFrame::OnMdiTabbedDocument()
{
    CMDIChildWndEx* pMDIChild = DYNAMIC_DOWNCAST(CMDIChildWndEx, MDIGetActive());
    if (pMDIChild == NULL)
    {
        ASSERT(FALSE);
        return;
    }

    TabbedDocumentToControlBar(pMDIChild);
}

要求

标头: afxMDIFrameWndEx.h

请参见

参考

CMDIFrameWndEx选件类

层次结构图