How to disable auto document/view creation when MFC application first starts
问题 I have a regular MFC application which uses Doc/View architecture. When the application starts it automatically creates a view of an empty document. I want to disable this automatic view on startup and show a view only when the user clicks on "New Document" from the File menu. Is there any way to do so? CMultiDocTemplate* template = new CMultiDocTemplate(IDR_DorlionTYPE, RUNTIME_CLASS(CDocument), RUNTIME_CLASS(CChildFrame), // custom MDI child frame RUNTIME_CLASS(CView)); if (!CView) return