IAgentCommandEx::SetVoiceCaption
[从 Windows 7 开始弃用 Microsoft 代理,在后续版本的 Windows 中可能不可用。
HRESULT SetVoiceCaption(
BSTR bszVoiceCaption // voice caption text
);
设置为命令显示的 VoiceCaption 文本。
- 返回S_OK以指示操作成功。
-
bszVoiceCaption
-
一个 BSTR,指定命令的 VoiceCaption 属性的文本。
如果在 Commands 集合中定义 Command 对象并设置其 Voice 属性,则通常还会设置其 VoiceCaption 属性。 当客户端应用程序处于活动状态时,此文本将显示在语音命令窗口中。 如果未设置此属性, 则 Caption 属性的设置将确定显示的文本。 当未设置 VoiceCaption 或属性时,命令不会显示在语音命令窗口中。
另请参阅
IAgentCommand::GetCaption、IAgentCommand::SetEnabled、IAgentCommand::SetVisible、IAgentCommand::SetVoice、IAgentCommandsEx::AddEx、IAgentCommandsEx::InsertEx、IAgentCommands::Add、IAgentCommands::Insert