IAgentCommand::SetVisible

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

HRESULT SetVisible(
   long bVisible  // Visible setting for Command
);

设置 CommandVisible 属性的值。

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

bVisible

一个布尔值,用于确定 CommandVisible 属性。 True 显示 命令; False 隐藏它。

命令必须将其 Visible 属性设置为 True,并且其 Caption 属性设置为才能显示在字符的弹出菜单中。

另请参阅

IAgentCommand::GetVisibleIAgentCommand::SetCaptionIAgentCommands::AddIAgentCommands::Insert