IVsToolWindowToolbarHost3.AddToolbar(VSTWT_LOCATION, Guid, UInt32) Método

Definição

Adiciona uma barra de ferramentas à janela de ferramentas.

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 *  * uint32 -> int
Public Function AddToolbar (dwLoc As VSTWT_LOCATION, ByRef pguid As Guid, dwId As UInteger) As Integer

Parâmetros

dwLoc
VSTWT_LOCATION

no Especifica o local da barra de ferramentas dentro da janela de ferramentas. Os valores são obtidos da VSTWT_LOCATION enumeração.

pguid
Guid

no Ponteiro para um identificador exclusivo do grupo de menus da barra de ferramentas.

dwId
UInt32

no DWORD que, em combinação com pguid , identifica a barra de ferramentas a ser adicionada.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Implementações

Comentários

Assinatura COM

De VSShell. idl:

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

Aplica-se a