IAgentCommand::SetVisible

[Microsoft 代理程式在 Windows 7 中已被取代,且在後續版本的 Windows 中可能無法使用。]

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

設定CommandVisible屬性值。

  • 傳回S_OK,表示作業成功。

bVisible

布林值,決定CommandVisible屬性。 True 會顯示 Command; False 會隱藏它。

CommandVisible屬性必須設定為True,且其Caption屬性設定為出現在字元的快顯視窗中。

另請參閱

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