术语 | CCommandLineInfo::m_nShellCommand | ||||||||||||||||||
释义 | CCommandLineInfo::m_nShellCommand 说明: 指明应用实例的外壳命令。 它的数据类型可以是在CCommandLineInfo中定义的以下枚举值: enum { Filenew, FileOpen, FilePrint, FilePrintTo, FileDDE, FileNothing =-1 }; 下面是这些值的详细说明:
示例: BOOL CMyWinApp::InitInstance( ) { // Parse command line for standard shell command,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::m_strFilename, CCommandLineInfo::m_strPrinterName, CCommandLineInfo::m_strDriverName, CCommandLineInfo::m_strPortName, CWinApp::ProcessShellCommand |
||||||||||||||||||
随便看 |
|
MFC类库中文详解手册包含4274条MFC类库参考词条,基本涵盖了Microsoft基本类库中的类、全局函数、全局变量和宏的内容,是计算机编程的有利工具。