IAgentCommands::SetVisible
[Microsoft エージェントは Windows 7 の時点で非推奨となり、以降のバージョンの Windows では使用できない場合があります。]
HRESULT SetVisible(
long bVisible // the Visible setting for Commands collection
);
Commands コレクションの Visible プロパティの値を設定 します 。
- 操作が成功したことを示すS_OKを返します。
-
bVisible
-
Commands コレクションの Visible プロパティを決定するブール値。 True を指定 すると、文字のポップアップ メニューが表示されるときに、 Commands コレクションの Caption が表示されます。 False を指定 しても表示されません。
Commands コレクションを文字のポップアップ メニューに表示するには、Caption プロパティを設定し、Visible プロパティを True に設定する必要があります。 また、クライアント アプリケーションが入力アクティブのときにコレクション内のコマンドを表示するには、 Visible プロパティを True に 設定する必要があります。
参照
IAgentCommands::GetVisible、 IAgentCommand::SetCaption