IAgentCommands::SetCaption
[Microsoft エージェントは Windows 7 の時点で非推奨となり、以降のバージョンの Windows では使用できない場合があります。]
HRESULT SetCaption(
BSTR bszCaption // Caption setting for Commands collection
);
Commands コレクションに表示される キャプション テキストを設定 します 。
- 操作が成功したことを示すS_OKを返します。
Commands コレクションの Caption プロパティを設定すると、Visible プロパティが True に設定され、アプリケーションが入力アクティブなクライアントではない場合に、文字のポップアップ メニューに表示される方法が定義されます。 Caption にアクセス キー (線なしニーモニック) を指定するには、その文字の前にアンパサンド (&) 文字を含めます。
Caption が設定されている Commands コレクションのコマンドを定義する場合、通常は Commands コレクションの Caption も定義します。
参照
IAgentCommands::GetCaption、 IAgentCommands::SetVisible、 IAgentCommands::SetVoice