Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Mar 28, 2003
Messages
2
Location
PT
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.
 
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

Back
Top