Remarks
Indicates the shell command for this instance of the application.
The type for this data member is the following enumerated type, which is defined within the CCommandLineInfo class.
enum{
FileNew,
FileOpen,
FilePrint,
FilePrintTo,
FileDDE,
FileNothing = -1
};
For a brief description of these values, see the following list.
Example
BOOL CMyWinApp::InitInstance()
{
...
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// DON'T display a new MDI child window during startup!!!
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
...
};
CCommandLineInfo Overview | Class Members | Hierarchy Chart
See Also CCommandLineInfo::m_strFileName, CCommandLineInfo::m_strPrinterName, CCommandLineInfo::m_strDriverName, CCommandLineInfo::m_strPortName, CWinApp::ProcessShellCommand