Partager via


CMDIFrameWndEx::TabbedDocumentToControlBar

Converts the specified tabbed document to a docking pane.

virtual BOOL TabbedDocumentToControlBar(
   CMDIChildWndEx* pMDIChildWnd 
);

Parameters

  • pMDIChildWnd
    A pointer to MDI child window that contains a docking pane.

Return Value

TRUE if the method was successful, FALSE on failure.

Remarks

Use this method to convert a tabbed document to a docking pane. The tabbed document must have been created by using CMDIFrameWndEx::ControlBarToTabbedDocument.

Example

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

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

    TabbedDocumentToControlBar(pMDIChild);
}

Requirements

Header: afxMDIFrameWndEx.h

See Also

Reference

CMDIFrameWndEx Class

Hierarchy Chart