共用方式為


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