IVsPackageDynamicToolOwner.QueryShowTool(Guid, Int32) Method

Definition

Allows the package to control whether the tool window should be shown or hidden. This method is called by the shell when the user switches to a different window view or context, for example Design, Debugging, Full Screen, etc.

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

Parameters

rguidPersistenceSlot
Guid

[in] The GUID of the window.

pfShowTool
Int32

[out] true to show the window, otherwise false.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPackageDynamicToolOwner::QueryShowTool(  
   [in] REFGUID rguidPersistenceSlot,   
   [out] BOOL *pfShowTool  
);  

Applies to