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)

[GuidAttribute("CF7549A9-7A2A-4A6E-ACF4-05452C98CF7E")]
[InterfaceTypeAttribute()]
public interface IVsToolWindowToolbarHost

The IVsToolWindowToolbarHost type exposes the following members.

  NameDescription
Public methodAddToolbarAdds a toolbar to the tool window.
Public methodBorderChangedThis method is for the environment's use only. Method information is not provided. Do not use this method.
Public methodCloseThis method is for the environment's use only. Method information is not provided. Do not use this method.
Public methodForceUpdateUIThis method is for the environment's use only. Method information is not provided. Do not use this method.
Public methodHideThis method is for the environment's use only. Method information is not provided. Do not use this method.
Public methodProcessMouseActivationThis method is for the environment's use only. Method information is not provided. Do not use this method.
Public methodProcessMouseActivationModalThis method is for the environment's use only. Method information is not provided. Do not use this method.
Public methodShowThis method is for the environment's use only. Method information is not provided. Do not use this method.
Public methodShowHideToolbarThis method is for the environment's use only. Method information is not provided. Do not use this method.
Top

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft