IVsToolbarTrayHost::AddToolbar Method (Guid, UInt32)

 

Adds a tool bar to the tray.

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

int AddToolbar(
	[InAttribute] Guid% pGuid,
	unsigned int dwId
)

Parameters

pGuid
Type: System::Guid

[in] The GUID of the tool bar to add.

dwId
Type: System::UInt32

[in] The ID of the toolbar to add.

Return Value

Type: System::Int32

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

Return to top
Show: