IAgentCommand::SetVisible

[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]

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

Sets the value of the Visible property for a Command.

  • Returns S_OK to indicate the operation was successful.

bVisible

A Boolean value that determines the Visible property of a Command. True shows the Command; False hides it.

A Command must have its Visible property set to True and its Caption property set to appear in the character's pop-up menu.

See Also

IAgentCommand::GetVisible, IAgentCommand::SetCaption, IAgentCommands::Add, IAgentCommands::Insert