次の方法で共有


IAgentCommand::GetCaption

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

HRESULT GetCaption(
   BSTR * pbszCaption  // address of Caption for Command
);

コマンドキャプション を取得します。

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

pbszCaption する

コマンドに表示される Caption テキストの値を受け取る BSTR のアドレス。

関連項目

IAgentCommand::SetCaption, IAgentCommand::SetEnabled, IAgentCommand::SetVisible, IAgentCommand::SetVoice, IAgentCommands::Add, IAgentCommands::Insert