Click to See Complete Forum and Search --> : Disable first window in MDI app.


Sean
March 29th, 1999, 01:21 AM
When I run my MDI application, an empty window opens. How do I prevent this from happening?

Thanks,

Sean.

Daren Chandisingh
March 29th, 1999, 04:09 AM
In your application's InitInstance add the following line:



CCommandLineInfo cmdInfo;


cmdInfo.m_nShellCommand = cmdInfo.FileNothing;


ParseCommandLine(cmdInfo);



This will turn off the "File New" that is the defauilt for initialised CCommandLineInfo objects.