IVsPackageDynamicToolOwnerEx.QueryShowTool(Guid, UInt32, Int32) Method

Definition

Enables the VSPackage to control whether to show or hide the tool window. The shell calls this method when the user switches views or contexts, for example Design, Debugging, Full Screen.

public:
 int QueryShowTool(Guid % rguidPersistenceSlot, System::UInt32 dwId, [Runtime::InteropServices::Out] int % pfShowTool);
public int QueryShowTool (ref Guid rguidPersistenceSlot, uint dwId, out int pfShowTool);
abstract member QueryShowTool : Guid * uint32 * int -> int
Public Function QueryShowTool (ByRef rguidPersistenceSlot As Guid, dwId As UInteger, ByRef pfShowTool As Integer) As Integer

Parameters

rguidPersistenceSlot
Guid

[in] The GUID of the window.

dwId
UInt32

[in] The instance ID of the tool window.

pfShowTool
Int32

[out] true if the tool window is to be displayed, otherwise false.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to