Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New document when application is started

Status
Not open for further replies.

sueco8

Programmer
Mar 30, 2003
4
ES
Hello,

I'd like to know how to make in a MDI application to don't call the "OnNewDocument" function when the application is started at the first time, so when I open the application, a new child frame don't be created.

Thank you very much.
 
In your InitInstance() method in the C***App class find this piece of code and add the indicated line:

[...]
CCommandLineInfo cmdInfo;
\\add the following line
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
ParseCommandLine(cmdInfo);
[...]

That's all (BTW, I found it in the MSDN Library ;-) ).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top