IAgentCommand::SetCaption
[Microsoft 代理从 Windows 7 开始已弃用,可能在后续版本的 Windows 中不可用。]
HRESULT SetCaption(
BSTR bszCaption // Caption setting for Command
);
- 返回指示操作成功的S_OK。
设置 Command 的 Caption 属性可定义当角色的 Visible 属性设置为 True 且应用程序不是输入活动客户端时,该命令在弹出菜单上的显示方式。 若要为 Caption 指定访问键 (无内线助记) ,请在该字符前面包含一个 (&) 字符。 若要使其可选,其 Enabled 属性必须设置为 True。
另请参阅
IAgentCommand::GetCaption、 IAgentCommand::SetEnabled、 IAgentCommand::SetVisible、 IAgentCommand::SetVoice、 IAgentCommands::Add、 IAgentCommands::Insert