IVsDropdownBarClient.SetDropdownBar(IVsDropdownBar) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called by the drop-down bar to hook itself up to the client.
public:
int SetDropdownBar(Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar ^ pDropdownBar);
public:
int SetDropdownBar(Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar ^ pDropdownBar);
int SetDropdownBar(Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar const & pDropdownBar);
public int SetDropdownBar (Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBar pDropdownBar);
abstract member SetDropdownBar : Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBar -> int
Public Function SetDropdownBar (pDropdownBar As IVsDropdownBar) As Integer
Parameters
- pDropdownBar
- IVsDropdownBar
[in] Specifies a drop-down bar object.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
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.