IVsDropdownBarClient::SetDropdownBar Method (IVsDropdownBar^)

 

Called by the drop-down bar to hook itself up to the client.

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

int SetDropdownBar(
	IVsDropdownBar^ pDropdownBar
)

Parameters

pDropdownBar
Type: Microsoft.VisualStudio.TextManager.Interop::IVsDropdownBar^

[in] Specifies a drop-down bar object.

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 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.

Return to top
Show: