다음을 통해 공유


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.실패할 경우 오류 코드를 반환합니다.

설명

Attach라고 AddDropdownBar. 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 네임스페이스