Partilhar via


VsDropdownBarClass.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:
 virtual int Attach(IntPtr hwndParent, int cCombos, Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBarClient ^ pClient) = Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBar::Attach;
public:
 virtual int Attach(IntPtr hwndParent, int cCombos, Microsoft::VisualStudio::TextManager::Interop::IVsDropdownBarClient ^ pClient);
public virtual int Attach (IntPtr hwndParent, int cCombos, Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBarClient pClient);
abstract member Attach : nativeint * int * Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBarClient -> int
override this.Attach : nativeint * int * Microsoft.VisualStudio.TextManager.Interop.IVsDropdownBarClient -> int
Public Overridable 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; otherwise, it returns an error code.

Implements

Applies to