다음을 통해 공유


IVsDropdownBarClient.SetDropdownBar(IVsDropdownBar) Method

Definition

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.

Applies to