DialogContainerWithToolbar Constructor (IServiceProvider^, Control^, IOleCommandTarget^)
Visual Studio 2015
Initializes a new instance DialogContainerWithToolbar with its contained control, and an IOleCommandTarget implementation that is in addition to the one owned by the OleMenuCommandService.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public:
DialogContainerWithToolbar(
IServiceProvider^ sp,
Control^ contained,
IOleCommandTarget^ parentCommandTarget
)
Parameters
- sp
-
Type:
System::IServiceProvider^
The IServiceProvider.
- contained
-
Type:
System.Windows.Forms::Control^
The Control that is to be contained.
- parentCommandTarget
-
Type:
Microsoft.VisualStudio.OLE.Interop::IOleCommandTarget^
The parent IOleCommandTarget.
The DialogContainerWithToolbar command target implementation uses the additional command target to search command handlers when they are not found in its collection of handlers.
Show: