IVsDropdownBar.Attach 方法

创建窗口和下拉组合并设置下拉栏及其客户端之间的链接。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
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

参数

  • hwndParent
    类型:IntPtr

    [in] 处理到父窗口。

  • cCombos
    类型:Int32

    [in] 组合下拉栏/的窗口。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

AttachAddDropdownBar调用。 Attach 创建窗口和下拉组合并设置下拉栏及其 IVsDropdownBarClient之间的链接。 ,除非您使用 IVsDropdownBarManager,不要调用此函数。

COM 签名

从 textmgr.idl:

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

.NET Framework 安全性

请参阅

参考

IVsDropdownBar 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间