BOOL ProcessShellCommand (CCommandLineInfoamp;rCmdInfo );(&A)
戻り値
シェル コマンドが正常に処理された場合は 0 以外です。0 の場合は、 initinstance 関数から false します。。
パラメーター
rCmdInfo
CCommandLineInfoオブジェクトへの参照。
解説
このメンバー関数は、パラメーター rCmdInfoを識別されるCCommandLineInfoオブジェクトから渡され、指定されたアクションを実行をInitInstanceでと呼ばれます。
AppWizard を使用して、新しい MFC プロジェクトを開始するときは、AppWizard CCommandLineInfoのローカル インスタンスを作成し、 InitInstanceメンバー関数を呼び出してProcessShellCommandとParseCommandLine 。以下のルート コマンド ・ ラインを次します。:
CCommandLineInfoクラス内で定義されている次の列挙型のCCommandLineInfo::m_nShellCommandを識別、 CCommandLineInfoオブジェクトのデータ メンバーであります。
列挙 {特価;FileNew、FileOpen、FilePrint、FilePrintTo、FileDDE、}(&N)
これらの各値の簡単な説明についてを参照してくださいCCommandLineInfo::m_nShellCommand。
CWinApp の概要|nbsp;クラス メンバー |階層図(&N)
参照特価;CWinApp::ParseCommandLine、 CCommandLineInfo、 CCommandLineInfo::ParseParam、 CCommandLineInfo::m_nShellCommand(&N)