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

'Declaration
Function Draw ( _
    pDrawItemStruct As VSDRAWITEMSTRUCT(), _
    fHot As Integer _
) As Integer
'Usage
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
)
function Draw(
    pDrawItemStruct : VSDRAWITEMSTRUCT[], 
    fHot : int
) : int

Parameters

  • 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

See Also

Reference

IVsImageButton Interface

IVsImageButton Members

Microsoft.VisualStudio.Shell.Interop Namespace