Frank
March 30th, 1999, 10:24 AM
How can i create new document without first view?(in MDI mode)
|
Click to See Complete Forum and Search --> : How can i create new document without first view? Frank March 30th, 1999, 10:24 AM How can i create new document without first view?(in MDI mode) Bore March 30th, 1999, 10:28 AM 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; S Cheeran March 31st, 1999, 10:25 PM and if it is a document created but without a view, try debugging the OnFileNew function by stepping into it, you'll find how. Frank April 1st, 1999, 11:19 AM Thank you! codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |