Just create new doc/view classes and add new document template in CYourApp::InitInstance:
BOOL CGeNIeApp::InitInstance()
{
...
// this template generated by the AppWizard
AddDocTemplate(new CMultiDocTemplate(
IDR_YOURTYPE,
RUNTIME_CLASS(CYourDoc),
RUNTIME_CLASS(CYourFrame),
RUNTIME_CLASS(CYourView)));
// new template
AddDocTemplate(new CMultiDocTemplate(
IDR_ANOTHERTYPE,
RUNTIME_CLASS(CAnotherDoc),
RUNTIME_CLASS(CAnotherFrame),
RUNTIME_CLASS(CAnotherView)));
}
...
}
Just create the menu with IDR_ANOTHERTYPE and it will be displayed automatically when you switch between views. Tomasz Sowinski -- http://www.shooltz.com