IVsButtonBar.Attach 메서드
창/단추 조합을 만듭니다.
네임스페이스: Microsoft.VisualStudio.TextManager.Interop
어셈블리: Microsoft.VisualStudio.TextManager.Interop(Microsoft.VisualStudio.TextManager.Interop.dll)
구문
‘선언
Function Attach ( _
hwndParent As IntPtr, _
cButtons As Integer, _
hImageList As IntPtr, _
pClient As IVsButtonBarClient _
) As Integer
int Attach(
IntPtr hwndParent,
int cButtons,
IntPtr hImageList,
IVsButtonBarClient pClient
)
int Attach(
[InAttribute] IntPtr hwndParent,
[InAttribute] int cButtons,
[InAttribute] IntPtr hImageList,
[InAttribute] IVsButtonBarClient^ pClient
)
abstract Attach :
hwndParent:IntPtr *
cButtons:int *
hImageList:IntPtr *
pClient:IVsButtonBarClient -> int
function Attach(
hwndParent : IntPtr,
cButtons : int,
hImageList : IntPtr,
pClient : IVsButtonBarClient
) : int
매개 변수
hwndParent
형식: IntPtr[in] 부모 창 핸들입니다.
cButtons
형식: Int32In
hImageList
형식: IntPtr[in] 이미지 목록에 처리 합니다.
반환 값
형식: Int32
메서드가 성공 하면, 반환 S_OK.실패할 경우 오류 코드를 반환합니다.
설명
COM 시그니처
Textmgr2.idl에서:
HRESULT IVsButtonBar::Attach(
[in] HWND hwndParent,
[in] long cButtons,
[in] HANDLE hImageList,
[in] IVsButtonBarClient *pClient
);
Attach라고 AddButtonBar. Attach창 및 단추 바로 가기 단축키를 만들고 단추 모음 및 해당 클라이언트 간의 연결을 설정 합니다. 무시 되지 않은 경우이 함수를 호출 하지 않습니다 IVsButtonBarManager. 각 bmp 이미지 목록에서 크기가 16 x 16 이어야 합니다.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.