remove the initial ChildFrame
-
Hi, I have created a MDI sing MFC Application. When I run the application, single empty childframe appears, which i don't want. Only when the click the 'New' menu/Icon, a new childframe should appear. Initially, no document should appear. Could somebody please help me on this. I thank in advance. Thanx Mughi
-
Hi, I have created a MDI sing MFC Application. When I run the application, single empty childframe appears, which i don't want. Only when the click the 'New' menu/Icon, a new childframe should appear. Initially, no document should appear. Could somebody please help me on this. I thank in advance. Thanx Mughi
Add this code to your application InitInstance() just before the call to ProcessShellCommands() // stop a new document being created if just run normally if (cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew) { cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; } If you vote me down, my score will only get lower
-
Add this code to your application InitInstance() just before the call to ProcessShellCommands() // stop a new document being created if just run normally if (cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew) { cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; } If you vote me down, my score will only get lower