IVsDropdownBarClient::SetDropdownBar Method (IVsDropdownBar^)
Visual Studio 2015
Called by the drop-down bar to hook itself up to the client.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- pDropdownBar
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsDropdownBar^
[in] Specifies a drop-down bar object.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsDropdownBarClient::SetDropdownBar(
[in] IVsDropdownBar *pDropdownBar
);
SetDropdownBar is called by the drop-down bar to hook itself up to the client. This callback is necessary, rather than relying on a return value from AddDropdownBar, because client callbacks are required as a result of attaching the combo bar, before AddDropdownBar returns. SetDropdownBar should be called only once.
Show: