CWinApp::ProcessShellCommand

BOOL ProcessShellCommand (CCommandLineInfoamp;rCmdInfo );(&A)

戻り値

シェル コマンドが正常に処理された場合は 0 以外です。0 の場合は、 initinstance 関数から false します。

パラメーター

rCmdInfo

CCommandLineInfoオブジェクトへの参照。

解説

このメンバー関数は、パラメーター rCmdInfoを識別されるCCommandLineInfoオブジェクトから渡され、指定されたアクションを実行をInitInstanceでと呼ばれます。

AppWizard を使用して、新しい MFC プロジェクトを開始するときは、AppWizard CCommandLineInfoのローカル インスタンスを作成し、 InitInstanceメンバー関数を呼び出してProcessShellCommandParseCommandLine 。以下のルート コマンド ・ ラインを次します。:

  1. InitInstanceで作成される、 CCommandLineInfoオブジェクトはParseCommandLineに渡される。

  2. ParseCommandLine [ CCommandLineInfo::ParseParam繰り返し、一度パラメーターごとに呼び出します。

  3. ParseParam ProcessShellCommandに渡される、 CCommandLineInfoオブジェクトを塗りつぶす。

  4. ProcessShellCommandフラグとコマンドライン引数を処理します。

CCommandLineInfoクラス内で定義されている次の列挙型のCCommandLineInfo::m_nShellCommandを識別、 CCommandLineInfoオブジェクトのデータ メンバーであります。

列挙 {特価;FileNew、FileOpen、FilePrint、FilePrintTo、FileDDE、}(&N)

これらの各値の簡単な説明についてを参照してくださいCCommandLineInfo::m_nShellCommand

CWinApp の概要|nbsp;クラス メンバー |階層図(&N)

参照特価;CWinApp::ParseCommandLineCCommandLineInfoCCommandLineInfo::ParseParamCCommandLineInfo::m_nShellCommand(&N)

Index