Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Extends the AddToolbar method to allow specifying the drop target to handle drop operations over the toolbar area.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assemblies: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.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
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: Guid%[in] The GUID of the toolbar's menu group.
dwId
Type: UInt32[in] The ID that, in combination with pguid, identifies the toolbar to be added.
pDropTarget
Type: Microsoft.VisualStudio.OLE.Interop.IDropTarget[in] The drop target.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.