Share via


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
DialogContainerWithToolbar
Implements

Constructors

DialogContainerWithToolbar()

Initializes a new instance of the class.

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.

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)

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

Properties

CommandService

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

ToolbarDropTarget

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

ToolbarHost

Returns the corresponding IVsToolWindowToolbarHost.

ToolbarID

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

ToolbarLocation

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

Methods

Dispose(Boolean)

Explicitly called to release resources.

SetSite(IServiceProvider)

Sets the site for this window.

ShowDialog()

Shows a dialog.

Explicit Interface Implementations

IMessageFilter.PreFilterMessage(Message)

Filters mouse messages before they are dispatched.

IServiceProvider.GetService(Type)

Gets the service of the specified type.

IVsToolWindowToolbar.GetBorder(RECT[])

Returns the border information for a tool window.

IVsToolWindowToolbar.SetBorderSpace(RECT[])

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

Applies to