다음을 통해 공유


IVsImageButton.Draw(VSDRAWITEMSTRUCT[], Int32) Method

Definition

Draws an ImageButton for your VSPackage.

public:
 int Draw(cli::array <Microsoft::VisualStudio::Shell::Interop::VSDRAWITEMSTRUCT> ^ pDrawItemStruct, int fHot);
int Draw(std::Array <Microsoft::VisualStudio::Shell::Interop::VSDRAWITEMSTRUCT> const & pDrawItemStruct, int fHot);
public int Draw (Microsoft.VisualStudio.Shell.Interop.VSDRAWITEMSTRUCT[] pDrawItemStruct, int fHot);
abstract member Draw : Microsoft.VisualStudio.Shell.Interop.VSDRAWITEMSTRUCT[] * int -> int
Public Function Draw (pDrawItemStruct As VSDRAWITEMSTRUCT(), fHot As Integer) As Integer

Parameters

pDrawItemStruct
VSDRAWITEMSTRUCT[]

[in] Provides the information in a VSDRAWITEMSTRUCT structure that IVsImageButton.Draw needs to drawthe owner-drawn control or menu item.

fHot
Int32

[in] When true, the button changes appearance when the mouse pointer is over the button.

Returns

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

Applies to