หมายเหตุ
บ่งชี้ว่า คำสั่งเชลล์สำหรับอินสแตนซ์ของแอพลิเคชันนี้?
ชนิดของสมาชิกของฐานข้อมูลนี้เป็นดังต่อไปนี้ระบุชนิด ซึ่งกำหนดไว้ภายในคลาCCommandLineInfo?
enum {
nbsp FileNew
FileOpen
FilePrint
FilePrintTo
FileDDE
FileNothing = -1
}(&N)
คำอธิบายโดยย่อของค่าเหล่านี้ ดูรายการต่อไปนี้?
ตัวอย่าง
BOOL CMyWinApp::InitInstance()
{
...
/ / แยกบรรทัดคำสั่งสำหรับมาตรฐานเชลล์คำสั่ง DDE แฟ้มเปิด
nbsp CCommandLineInfo cmdInfo
ParseCommandLine(cmdInfo)
/ / ไม่แสดงหน้าต่างลูก MDI ใหม่ระหว่างการเริ่มต้น!!!
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing
/ / ส่งคำสั่งที่ระบุบนบรรทัดคำสั่ง
if (!ProcessShellCommand(cmdInfo))
ส่งกลับค่า FALSE
...
}(&N)
ภาพรวม CCommandLineInfo |nbsp สมาชิกของคลาส| แผนภูมิของลำดับชั้น(&N)
ดูเพิ่มเติมnbspCCommandLineInfo::m_strFileName, CCommandLineInfo::m_strPrinterName, CCommandLineInfo::m_strDriverName, CCommandLineInfo::m_strPortName, CWinApp::ProcessShellCommand(&N)