IAgentCommands::SetCaption

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

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

设置为 Commands 集合显示的标题文本。

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

bszCaption

一个 BSTR,指定 Commands 集合的 Caption 属性的值。

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

如果为具有其 Caption的 Commands 集合定义命令,则通常还会为其 Commands 集合定义 Caption

另请参阅

IAgentCommands::GetCaptionIAgentCommands::SetVisibleIAgentCommands::SetVoice