IVsToolWindowToolbarHost3::AddToolbar3 Method (VSTWT_LOCATION, Guid, UInt32, IDropTarget^, IOleCommandTarget^)
Visual Studio 2015
Specifies the drop target to handle drop operations over the toolbar area and the command target to be used for the commands on it.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
int AddToolbar3( VSTWT_LOCATION dwLoc, [InAttribute] Guid% pguid, unsigned int dwId, IDropTarget^ pDropTarget, IOleCommandTarget^ pCommandTarget )
Parameters
- dwLoc
-
Type:
Microsoft.VisualStudio.Shell.Interop::VSTWT_LOCATION
[in] Specifies the location of the toolbar within the tool window. Values are taken from the VSTWT_LOCATION enumeration.
- pguid
-
Type:
System::Guid
[in] The GUID of the toolbar's menu group.
- dwId
-
Type:
System::UInt32
[in] The identifier that, in combination with pguid, identifies the toolbar to be added.
- pDropTarget
-
Type:
Microsoft.VisualStudio.OLE.Interop::IDropTarget^
[in, optional] The drop target.
- pCommandTarget
-
Type:
Microsoft.VisualStudio.OLE.Interop::IOleCommandTarget^
[in, optional] The command target. If this parameter is null, the toolbar host's own command target is used.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: