Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start with no files in MFC?

Status
Not open for further replies.

rmpo

Computer
Mar 28, 2003
2
Hi! I'm developping a Multiple Document Interface in Visual C++ 6 with MFC and I would like to know how can I prevent that my application doesn't create a new document when it starts (that is, opens with no child windows). I know that starter applications generated by AppWizard call OnFileNew() to create a blank document when they run. OnFileNew() calls the document's OnNewDocument(). How can I prevent this to happen when I start the application?

Thanks for your attention.
 
Replies continue below

Recommended for you

Thanks but I have already found the answer to my question. If we return FALSE in the OnNewDocument() function in the Document's class, OnFileNew() doesn't create the window.

Ricardo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor