I have this MDI based application written using MFC Doc/View paradigm, and I want to 'spawn' several top-level SDI frame windows (within the same process). These so called helpers will DIFFER from the main app child windows as they will display different views, menus, toolbars.
Now when I spawn the helpers using:
it works as expected but the MFC framework then treats these new frames as some sort of MDI children of the main application! So for example, closing one of them will change the menubar and garble the toolbar buttons of the main application.
What's happening? Am I forcing the framework? How can I have multiple top-level frame windows along a main MDI one?
CMultiDocTemplate *pDocTemplate = new CMultiDocTemplate(
RUNTIME_CLASS( CDoc ),
RUNTIME_CLASS( CChildFrame ),
RUNTIME_CLASS( CView ) );
if( !pDocTemplate )
AddDocTemplate( pDocTemplate );
CMultiDocTemplate *pDocTemplate2 = new CMultiDocTemplate(
RUNTIME_CLASS( CDoc2 ),
RUNTIME_CLASS( CMainFrame ),
RUNTIME_CLASS( CView2 ) );
if( !pDocTemplate2 )