IVsDropdownBar.Attach Method
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)
Syntax
'Declaración
Function Attach ( _
hwndParent As IntPtr, _
cCombos As Integer, _
pClient As IVsDropdownBarClient _
) As Integer
int Attach(
IntPtr hwndParent,
int cCombos,
IVsDropdownBarClient pClient
)
int Attach(
[InAttribute] IntPtr hwndParent,
[InAttribute] int cCombos,
[InAttribute] IVsDropdownBarClient^ pClient
)
abstract Attach :
hwndParent:IntPtr *
cCombos:int *
pClient:IVsDropdownBarClient -> int
function Attach(
hwndParent : IntPtr,
cCombos : int,
pClient : IVsDropdownBarClient
) : int
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. 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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.