IVsToolWindowToolbarHost2.AddToolbar2 Method

Extends the AddToolbar(VSTWT_LOCATION, Guid%, UInt32) method to allow specifying the drop target to handle drop operations over the toolbar area.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

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

Parameters

  • pGuid
    Type: System.Guid%
    [in] The GUID of the toolbar's menu group.
  • dwId
    Type: System.UInt32
    [in] The ID that, in combination with pguid, identifies the toolbar to be added.

Return Value

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

.NET Framework Security

See Also

Reference

IVsToolWindowToolbarHost2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace