IVsToolWindowToolbarHost3::AddToolbar Method (VSTWT_LOCATION, Guid, UInt32)

 

Adds a toolbar to the tool window.

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

int AddToolbar(
	VSTWT_LOCATION dwLoc,
	[InAttribute] Guid% pguid,
	unsigned int dwId
)

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: System::Guid

[in] Pointer to a unique identifier for the toolbar's menu group.

dwId
Type: System::UInt32

[in] DWORD 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.

From vsshell.idl:

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