CMDIFrameWndEx::CreateDocumentWindow
Visual Studio 2012
Creates a child document window.
virtual CMDIChildWndEx* CreateDocumentWindow( LPCTSTR lpcszDocName, CObject* pObj );
The following example shows how CreateDocumentWindow is used in the VisualStudioDemo Sample: MFC Visual Studio Application.
In this example, g_strStartViewName could be the name of a "virtual document" (for example, "Start Page") that is not actually loaded from a disk file. Therefore we need special processing to handle that case.
CMainFrame::CMainFrame()
{
CMFCPopupMenu::SetForceShadow(TRUE);
m_bCanConvertControlBarToMDIChild = TRUE;
}