How To Prevent Creation of Initial Macintosh Document (152029)
The information in this article applies to:
- Microsoft Visual C++, Macintosh Cross-Development Addon 2.0
- Microsoft Visual C++, Macintosh Cross-Development Addon 4.0
This article was previously published under Q152029 SUMMARY
Sometimes it is preferable not to initially open a new document in an MFC
application. To implement this behavior on Windows, you can remove the call
to OnFileNew() or ParseCommandLine() from InitInstance. On the Macintosh,
you need to override CWinApp::CreateInitialDocument(). This article
describes how to accomplish these behaviors.
REFERENCES
See "Creating Initial Documents" in the Macintosh Porting Guide within
the Online Documentation.
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbDocView kbhowto kbNoUpdate KB152029 |
---|
|