Help with MDI
-
hello! i make a vc++ programm with a mdi. everytime, when i start the programm a empty document is open. what must i change, that the empty document is not there at the beginning? thanks MFC is the best
-
hello! i make a vc++ programm with a mdi. everytime, when i start the programm a empty document is open. what must i change, that the empty document is not there at the beginning? thanks MFC is the best
Add the following in CYourApp::InitInstance.
...
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
if (CCommandLineInfo::FileNew == cmdInfo.m_nShellCommand)
{
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
}
...Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
-
Add the following in CYourApp::InitInstance.
...
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
if (CCommandLineInfo::FileNew == cmdInfo.m_nShellCommand)
{
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
}
...Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
i'm sorry, it does not fold. it with you folded? what can be the mistake?
-
Add the following in CYourApp::InitInstance.
...
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
if (CCommandLineInfo::FileNew == cmdInfo.m_nShellCommand)
{
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
}
...Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
everything is okay.....found the mistake, thany you :rose::rose::rose: