When I run my MDI application, an empty window opens. How do I prevent this from happening?
Thanks,
Sean.
Printable View
When I run my MDI application, an empty window opens. How do I prevent this from happening?
Thanks,
Sean.
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.