IVsButtonBarManager::GetButtonBar Method (IVsButtonBar^)

 

Returns the button bar associated with a code window.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int GetButtonBar(
	[OutAttribute] IVsButtonBar^% ppButtonBar
)

Parameters

ppButtonBar
Type: Microsoft.VisualStudio.TextManager.Interop::IVsButtonBar^

[out] Pointer to a button bar.

Return Value

Type: System::Int32

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

From textmgr.idl:

HRESULT IVsButtonBarManager::GetButtonBar(
   [out] IVsButtonBar **ppButtonBar
);

GetButtonBar sends back the button bar associated with a code window, if any. If a button bar is associated with the window, GetButtonBar returns S_OK and sends back an AddRef'd pointer to the button bar. Otherwise it returns S_FALSE and sets ppButtonBar to null.

Return to top
Show: