[Microsoft代理程式從 Windows 7 開始已被取代,而且可能無法在後續版本的 Windows 中使用。]
HRESULT SetEnabled(
long bEnabled // Enabled setting for Command
);
- 傳回S_OK,表示作業成功。
命令 必須將其 Enabled 屬性設定為 True 才能選取。 它也必須設定其 Caption 屬性,且其 Visible 屬性設定為 True,才能出現在字元的快捷功能表中。 若要讓 命令 出現在 Voice Commands Window中,您必須設定其 Voice屬性。
另請參閱
IAgentCommand::GetCaption、IAgentCommand::SetVoice、IAgentCommands::Add、IAgentCommands::Insert