다음을 통해 공유


IVsToolbarTrayHost.AddToolbar(Guid, UInt32) Method

Definition

Adds a tool bar to the tray.

public:
 int AddToolbar(Guid % pGuid, System::UInt32 dwId);
public int AddToolbar (ref Guid pGuid, uint dwId);
abstract member AddToolbar : Guid * uint32 -> int
Public Function AddToolbar (ByRef pGuid As Guid, dwId As UInteger) As Integer

Parameters

pGuid
Guid

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

dwId
UInt32

[in] The ID of the toolbar to add.

Returns

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

Applies to