IVsImageButton::Draw Method (array<VSDRAWITEMSTRUCT>^, Int32)

 

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)

int Draw(
	array<VSDRAWITEMSTRUCT>^ pDrawItemStruct,
	int fHot
)

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.

Draws an image on a button created by your VSPackage. The button must have the BS_OWNERDRAW style.

From vsshell80.idl:

[C++]

HRESULT Draw(
   VSDRAWITEMSTRUCT* pDrawItemStruct, 
   BOOL fHot
);
Return to top
Show: