IVsButtonBarManager::GetButtonBar Method (IVsButtonBar^)
Visual Studio 2015
Returns the button bar associated with a code window.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- ppButtonBar
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsButtonBar^
[out] Pointer to a button bar.
Return Value
Type: System::Int32If 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.
Show: