IVsDropdownBarManager::AddDropdownBar Method (Int32, IVsDropdownBarClient^)

 

Allows you to add a set of combo dropdowns to a code window. This call wraps the call to IVsDropdownBar::Attach. If there is already a dropdown bar attached to the code window it returns E_UNEXPECTED. In general you should call GetDropdownBar first before calling AddDropdownBar to make sure there isn't already a dropdown bar associated with the given code window.

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

int AddDropdownBar(
	int cCombos,
	IVsDropdownBarClient^ pClient
)

Parameters

cCombos
Type: System::Int32

[in] The DropdownBar/Window combo.

pClient
Type: Microsoft.VisualStudio.TextManager.Interop::IVsDropdownBarClient^

[in] DropdownBar client.

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 IVsDropdownBarManager::AddDropdownBar(
   [in] long cCombos,
   [in] IVsDropdownBarClient *pClient
);

AddDropdownBar adds a set of combo dropdowns to a code window. This call wraps the call to Attach. If there is already a dropdown bar attached to the code window the call returns E_UNEXPECTED. You should call GetDropdownBar before calling AddDropdownBar to ensure that there isn't already a dropdown bar associated with the given code window.

Return to top
Show: