DialogContainerWithToolbar DialogContainerWithToolbar DialogContainerWithToolbar DialogContainerWithToolbar Class

Definition

Use this class to implement modal forms in Visual Studio. The implementation enables the form to host a Visual Studio command bar so that it participates in standard command routing.

public ref class DialogContainerWithToolbar : System::Windows::Forms::Form, IServiceProvider, Microsoft::VisualStudio::Shell::Interop::IVsToolWindowToolbar, System::Windows::Forms::IMessageFilter
public class DialogContainerWithToolbar : System.Windows.Forms.Form, IServiceProvider, Microsoft.VisualStudio.Shell.Interop.IVsToolWindowToolbar, System.Windows.Forms.IMessageFilter
type DialogContainerWithToolbar = class
    inherit Form
    interface IVsToolWindowToolbar
    interface IServiceProvider
    interface IMessageFilter
Public Class DialogContainerWithToolbar
Inherits Form
Implements IMessageFilter, IServiceProvider, IVsToolWindowToolbar
Inheritance
DialogContainerWithToolbarDialogContainerWithToolbarDialogContainerWithToolbarDialogContainerWithToolbar
Implements

Constructors

DialogContainerWithToolbar() DialogContainerWithToolbar() DialogContainerWithToolbar() DialogContainerWithToolbar()

Initializes a new instance of the class.

DialogContainerWithToolbar(IServiceProvider) DialogContainerWithToolbar(IServiceProvider) DialogContainerWithToolbar(IServiceProvider) DialogContainerWithToolbar(IServiceProvider)

Initializes a new instance of the class and sets the service provider.

DialogContainerWithToolbar(IServiceProvider, Control) DialogContainerWithToolbar(IServiceProvider, Control) DialogContainerWithToolbar(IServiceProvider, Control) DialogContainerWithToolbar(IServiceProvider, Control)

Initializes a new instance of the class and sets the service provider and the control that is contained by the form.

DialogContainerWithToolbar(IServiceProvider, Control, IOleCommandTarget) DialogContainerWithToolbar(IServiceProvider, Control, IOleCommandTarget) DialogContainerWithToolbar(IServiceProvider, Control, IOleCommandTarget) DialogContainerWithToolbar(IServiceProvider, Control, IOleCommandTarget)

Initializes a new instance DialogContainerWithToolbar with its contained control, and an IOleCommandTarget implementation that is in addition to the one owned by the OleMenuCommandService.

Properties

CommandService CommandService CommandService CommandService

Returns the command service that is used to check the status or execute the commands on the toolbar.

ToolbarDropTarget ToolbarDropTarget ToolbarDropTarget ToolbarDropTarget

If the toolwindow has a ToolBar, allows intercepting drag and drop operations on the toolbar. Otherwise this is null

ToolbarHost ToolbarHost ToolbarHost ToolbarHost

Returns the corresponding IVsToolWindowToolbarHost.

ToolbarID ToolbarID ToolbarID ToolbarID

Gets or sets the command ID of the toolbar that is contained in this dialog box.

ToolbarLocation ToolbarLocation ToolbarLocation ToolbarLocation

Gets and sets the value of the enumeration that describes the toolbar location.

Methods

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Explicitly called to release resources.

SetSite(IServiceProvider) SetSite(IServiceProvider) SetSite(IServiceProvider) SetSite(IServiceProvider)

Sets the site for this window.

ShowDialog() ShowDialog() ShowDialog() ShowDialog()

Shows a dialog.

Explicit Interface Implementations

IVsToolWindowToolbar.GetBorder(RECT[]) IVsToolWindowToolbar.GetBorder(RECT[]) IVsToolWindowToolbar.GetBorder(RECT[]) IVsToolWindowToolbar.GetBorder(RECT[])

Returns the border information for a tool window.

IVsToolWindowToolbar.SetBorderSpace(RECT[]) IVsToolWindowToolbar.SetBorderSpace(RECT[]) IVsToolWindowToolbar.SetBorderSpace(RECT[]) IVsToolWindowToolbar.SetBorderSpace(RECT[])

Stores toolbar information and resizes the main pane to leave room for the command bar.

IServiceProvider.GetService(Type) IServiceProvider.GetService(Type) IServiceProvider.GetService(Type) IServiceProvider.GetService(Type)

Gets the service of the specified type.

IMessageFilter.PreFilterMessage(Message) IMessageFilter.PreFilterMessage(Message) IMessageFilter.PreFilterMessage(Message) IMessageFilter.PreFilterMessage(Message)

Filters mouse messages before they are dispatched.

Applies to