Share via


IVsToolWindowToolbarHost3.AddToolbar3 Method

Specifies the drop target to handle drop operations over the toolbar area and the command target to be used for the commands on it.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Function AddToolbar3 ( _
    dwLoc As VSTWT_LOCATION, _
    ByRef pguid As Guid, _
    dwId As UInteger, _
    pDropTarget As IDropTarget, _
    pCommandTarget As IOleCommandTarget _
) As Integer
int AddToolbar3(
    VSTWT_LOCATION dwLoc,
    ref Guid pguid,
    uint dwId,
    IDropTarget pDropTarget,
    IOleCommandTarget pCommandTarget
)
int AddToolbar3(
    [InAttribute] VSTWT_LOCATION dwLoc, 
    [InAttribute] Guid% pguid, 
    [InAttribute] unsigned int dwId, 
    [InAttribute] IDropTarget^ pDropTarget, 
    [InAttribute] IOleCommandTarget^ pCommandTarget
)
abstract AddToolbar3 : 
        dwLoc:VSTWT_LOCATION * 
        pguid:Guid byref * 
        dwId:uint32 * 
        pDropTarget:IDropTarget * 
        pCommandTarget:IOleCommandTarget -> int
function AddToolbar3(
    dwLoc : VSTWT_LOCATION, 
    pguid : Guid, 
    dwId : uint, 
    pDropTarget : IDropTarget, 
    pCommandTarget : IOleCommandTarget
) : int

Parameters

  • pguid
    Type: Guid%

    [in] The GUID of the toolbar's menu group.

  • dwId
    Type: UInt32

    [in] The identifier that, in combination with pguid, identifies the toolbar to be added.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsToolWindowToolbarHost3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace