Partilhar via


IVsDropdownBar.Attach(IntPtr, Int32, IVsDropdownBarClient) Method

Definition

Creates the window and drop-down combination and sets up a link between the drop-down bar and its client.

public:
 int Attach(IntPtr hwndParent, int cCombos, Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBarClient ^ pClient);
public int Attach (IntPtr hwndParent, int cCombos, Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBarClient pClient);
abstract member Attach : nativeint * int * Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBarClient -> int
Public Function Attach (hwndParent As IntPtr, cCombos As Integer, pClient As IVsDropdownBarClient) As Integer

Parameters

hwndParent
IntPtr

nativeint

[in] Handle to the parent window.

cCombos
Int32

[in] The Drop-down bar/Window combo.

pClient
IVsDropdownBarClient

[in] Pointer to the Drop-down bar client.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Attach is called by AddDropdownBar. Attach creates the window and dropdown combination and sets up a link between the dropdown bar and its IVsDropdownBarClient. Do not call this function unless you're bypassing IVsDropdownBarManager.

COM Signature

From textmgr.idl:

HRESULT IVsDropdownBar::Attach(  
   [in] HWND hwndParent,  
   [in] long cCombos,  
   [in] IVsDropdownBarClient *pClient  
);  

Applies to