MDI aplication
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
Hi! I'm creting a MDI aplication and I don't want that when I start the aplication a document to be created automaticaly. Any ideas?:confused: Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...
-
Hi! I'm creting a MDI aplication and I don't want that when I start the aplication a document to be created automaticaly. Any ideas?:confused: Bye, Orbital^ ...the night is long ... but not long enought to do some real coding ...
Put this code at the end of you InitInstance for your app
// stop a new document being created if just run normally if (cmdInfo.m\_nShellCommand == CCommandLineInfo::FileNew) cmdInfo.m\_nShellCommand = CCommandLineInfo::FileNothing ;
Just before the call to ProcessShellCommand Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.