IVsImageButton.Draw(VSDRAWITEMSTRUCT[], Int32) Méthode

Définition

Dessine un ImageButton pour votre 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

Paramètres

pDrawItemStruct
VSDRAWITEMSTRUCT[]

[in] Fournit les informations dans une structure VSDRAWITEMSTRUCT dont IVsImageButton.Draw a besoin pour dessiner l'élément de contrôle ou de menu de type owner-drawn.

fHot
Int32

[in] Lorsque true, l'apparence du bouton change lorsque le pointeur de la souris se trouve sur le bouton.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Dessine une image sur un bouton créé par votre VSPackage. Le bouton doit avoir le style BS_OWNERDRAW.

Signature COM

À partir de vsshell80. idl :

[C++]

HRESULT Draw(  
   VSDRAWITEMSTRUCT* pDrawItemStruct,   
   BOOL fHot  
);  

S’applique à