IVsToolWindowToolbarHost2.AddToolbar2 Method

Definition

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

public:
 int AddToolbar2(Microsoft::VisualStudio::Shell::Interop::VSTWT_LOCATION dwLoc, Guid % pGuid, System::UInt32 dwId, Microsoft::VisualStudio::OLE::Interop::IDropTarget ^ pDropTarget);
public int AddToolbar2 (Microsoft.VisualStudio.Shell.Interop.VSTWT_LOCATION dwLoc, ref Guid pGuid, uint dwId, Microsoft.VisualStudio.OLE.Interop.IDropTarget pDropTarget);
abstract member AddToolbar2 : Microsoft.VisualStudio.Shell.Interop.VSTWT_LOCATION * Guid * uint32 * Microsoft.VisualStudio.OLE.Interop.IDropTarget -> int
Public Function AddToolbar2 (dwLoc As VSTWT_LOCATION, ByRef pGuid As Guid, dwId As UInteger, pDropTarget As IDropTarget) As Integer

Parameters

dwLoc
VSTWT_LOCATION

[in] Specifies the location of the toolbar within the tool window. Values are taken from the VSTWT_LOCATION enumeration.

pGuid
Guid

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

dwId
UInt32

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

pDropTarget
IDropTarget

[in] The drop target.

Returns

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

Applies to