|
-
March 30th, 1999, 11:24 AM
#1
How can i create new document without first view?
How can i create new document without first view?(in MDI mode)
-
March 30th, 1999, 11:28 AM
#2
Is this what you mean?
Do you mean you want to get rid of the empty document that comes up when you first start your MDI app? If yes, then insert this between ParseCommandLine() and ProcessShellCommand() in your InitInstance():
//
// The mfc wizard causes the application to open a new
// document at startup. We don't want this behavior.
//
if (cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
-
March 31st, 1999, 11:25 PM
#3
Re: Is this what you mean?
and if it is a document created but without a view, try debugging the OnFileNew function by stepping into it, you'll find how.
-
April 1st, 1999, 12:19 PM
#4
Re: Is this what you mean?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|