IVsImageButton.Draw Method
Draws an ImageButton for your VSPackage.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function Draw ( _
pDrawItemStruct As VSDRAWITEMSTRUCT(), _
fHot As Integer _
) As Integer
'用途
Dim instance As IVsImageButton
Dim pDrawItemStruct As VSDRAWITEMSTRUCT()
Dim fHot As Integer
Dim returnValue As Integer
returnValue = instance.Draw(pDrawItemStruct, _
fHot)
int Draw(
VSDRAWITEMSTRUCT[] pDrawItemStruct,
int fHot
)
int Draw(
[InAttribute] array<VSDRAWITEMSTRUCT>^ pDrawItemStruct,
[InAttribute] int fHot
)
abstract Draw :
pDrawItemStruct:VSDRAWITEMSTRUCT[] *
fHot:int -> int
function Draw(
pDrawItemStruct : VSDRAWITEMSTRUCT[],
fHot : int
) : int
Parameters
- pDrawItemStruct
Type: array<Microsoft.VisualStudio.Shell.Interop.VSDRAWITEMSTRUCT[]
[in] Provides the information in a VSDRAWITEMSTRUCT structure that IVsImageButton.Draw needs to drawthe owner-drawn control or menu item.
- fHot
Type: System.Int32
[in] When true, the button changes appearance when the mouse pointer is over the button.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
Draws an image on a button created by your VSPackage. The button must have the BS_OWNERDRAW style.
COM Signature
From vsshell80.idl:
[C++]
HRESULT Draw(
VSDRAWITEMSTRUCT* pDrawItemStruct,
BOOL fHot
);
.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.