IAgentCommand::SetCaption

[Microsoft 代理从 Windows 7 开始已弃用,可能在后续版本的 Windows 中不可用。]

HRESULT SetCaption(
   BSTR bszCaption  // Caption setting for Command
);

设置为命令显示的标题文本。

  • 返回指示操作成功的S_OK。

bszCaption

一个 BSTR,指定 CommandCaption 属性的文本。

设置 CommandCaption 属性可定义当角色的 Visible 属性设置为 True 且应用程序不是输入活动客户端时,该命令在弹出菜单上的显示方式。 若要为 Caption 指定访问键 (无内线助记) ,请在该字符前面包含一个 (&) 字符。 若要使其可选,其 Enabled 属性必须设置为 True

另请参阅

IAgentCommand::GetCaptionIAgentCommand::SetEnabledIAgentCommand::SetVisibleIAgentCommand::SetVoiceIAgentCommands::AddIAgentCommands::Insert