Export (0) Print
Expand All
Expand Minimize

CMDIFrameWndEx::TabbedDocumentToControlBar

Converts the specified tabbed document to a docking pane.

virtual BOOL TabbedDocumentToControlBar(
   CMDIChildWndEx* pMDIChildWnd 
);

pMDIChildWnd

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

TRUE if the method was successful, FALSE on failure.

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

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);
}

Header: afxMDIFrameWndEx.h

Show:
© 2014 Microsoft