IVsToolWindowToolbarHost Interface
Provides control over features pertaining to a tool window toolbar.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Dichiarazione
<GuidAttribute("CF7549A9-7A2A-4A6E-ACF4-05452C98CF7E")> _
<InterfaceTypeAttribute()> _
Public Interface IVsToolWindowToolbarHost
'Utilizzo
Dim instance As IVsToolWindowToolbarHost
[GuidAttribute("CF7549A9-7A2A-4A6E-ACF4-05452C98CF7E")]
[InterfaceTypeAttribute()]
public interface IVsToolWindowToolbarHost
[GuidAttribute(L"CF7549A9-7A2A-4A6E-ACF4-05452C98CF7E")]
[InterfaceTypeAttribute()]
public interface class IVsToolWindowToolbarHost
public interface IVsToolWindowToolbarHost
Remarks
This interface is implemented by the environment in response to a VSPackage creating a tool window using CreateToolWindow with a CTW_fToolbarHost flag. The environment creates an IVsToolWindowToolbar interface then makes available an IVsToolWindowToolbarHost interface that is accessible to the VSPackage. The VSPackage accesses the IVsToolWindowToolbarHost interface by calling GetProperty on the tool window with the VSFPROPID_ToolbarHost property parameter.
The AddToolbar method is the only IVsToolWindowToolbarHost method that should be called by a VSPackage. The environment calls the other methods to respond to user interaction with the tool window.
Notes to Implementers:
This interface is implemented by the environment to give a VSPackage control over its tool window toolbars.
Notes to Callers:
Called by VSPackages should call this interface when they need to exercise control over tool window toolbars.