Share via


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

  • 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

Microsoft.VisualStudio.Shell.Interop Namespace