次の方法で共有


IAgentCommands::SetCaption

[Microsoft エージェントは Windows 7 の時点で非推奨となり、以降のバージョンの Windows では使用できない可能性があります。]

HRESULT SetCaption(
   BSTR bszCaption  // Caption setting for Commands collection
);

Commands コレクションに表示される Caption テキストを設定します。

  • 操作が成功したことを示すS_OKを返します。

bszCaption する

Commands コレクションの Caption プロパティの値を指定する BSTR。

Commands コレクションの Caption プロパティを設定すると、Visible プロパティが True に設定されていて、アプリケーションが入力アクティブクライアントでない場合に、文字のポップアップ メニューに表示される方法が定義されます。 Captionのアクセス キー (線なしニーモニック) を指定するには、その文字の前にアンパサンド (&) 文字を含めます。

Caption が設定されている Commands コレクションのコマンドを定義する場合は、通常、Commands コレクションの キャプション も定義します。

関連項目

IAgentCommands::GetCaptionIAgentCommands::SetVisibleIAgentCommands::SetVoice