rafiki
May 23rd, 1999, 05:37 AM
How can I prevent a creation of first startup MDI child window which is creating automatically after app run.
or to add some code before creation of this child window.
Thanx alot
Jack Shainsky
May 23rd, 1999, 07:24 AM
Put in InitInstance function of your application class following lines between ParseCommandLine() and ProcessShellCommand():
CMyApp::InitInstance()
{
...
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// DON'T display a new MDI child window during startup!!!
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
...
}
Jack Shainsky
Jerusalem, Israel.
jack.shainsky@usa.net