IVsImageButton::Draw Method (array<VSDRAWITEMSTRUCT>^, Int32)
Visual Studio 2015
Draws an ImageButton for your VSPackage.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
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::Int32If 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 );
Show: