Udostępnij za pośrednictwem


IVsToolWindowToolbarHost3.AddToolbar(VSTWT_LOCATION, Guid, UInt32) Method

Definition

Adds a toolbar to the tool window.

public:
 int AddToolbar(Microsoft::VisualStudio::Shell::Interop::VSTWT_LOCATION dwLoc, Guid % pguid, System::UInt32 dwId);
public int AddToolbar (Microsoft.VisualStudio.Shell.Interop.VSTWT_LOCATION dwLoc, ref Guid pguid, uint dwId);
abstract member AddToolbar : Microsoft.VisualStudio.Shell.Interop.VSTWT_LOCATION * Guid * uint32 -> int
Public Function AddToolbar (dwLoc As VSTWT_LOCATION, ByRef pguid As Guid, dwId As UInteger) 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] Pointer to a unique identifier for the toolbar's menu group.

dwId
UInt32

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

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolWindowToolbarHost::AddToolbar(  
   [in] VSTWT_LOCATION dwLoc,  
   [in] const GUID *pguid,  
   [in] DWORD dwId  
);  

Applies to