VsDropdownBarClass::Attach Method (IntPtr, Int32, IVsDropdownBarClient^)

 

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

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

public:
virtual int Attach(
	IntPtr hwndParent,
	int cCombos,
	IVsDropdownBarClient^ pClient
)

Parameters

hwndParent
Type: System::IntPtr

[in] Handle to the parent window.

cCombos
Type: System::Int32

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

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

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

Return Value

Type: System::Int32

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

Return to top
Show: