Article ID: 139422
Article Last Modified on 11/21/2006
if (!ProcessShellCommand(cmdInfo))
return FALSE;
If the application was generated with an earlier version of Visual C++,
set m_nCmdShow to the appropriate value before this line:
OnFileNew();In the Visual C++ 4.2 AppWizard-generated application do the following:
if (!ProcessShellCommand(cmdInfo))
return FALSE;
m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);
// Visual C++ 4.0, 4.1, or 4.2 AppWizard-generated SDI application
BOOL CMyApp::InitInstance()
{
...
ParseCommandLine(cmdInfo);
// Add the following line to initially maximize the Application.
m_nCmdShow = SW_SHOWMAXIMIZED;
// Dispatch commands specified on the command line.
if (!ProcessShellCommand(cmdInfo))
return FALSE;
return TRUE;
}
// Visual C++ 2.0 AppWizard-generated SDI application.
BOOL CMyApp::InitInstance()
{
...
AddDocTemplate(pDocTemplate);
// Add the following line to initially maximize the Application.
m_nCmdShow = SW_SHOWMAXIMIZED;
// Create a new (empty) document
OnFileNew();
...
}
Additional query words: kbVC400bug
Keywords: kbbug kbfix kbnoupdate kbvc500fix kbwizard KB139422