IVsImageButton.Draw(VSDRAWITEMSTRUCT[], Int32) Yöntem

Tanım

VSPackage için bir ImageButton çizer.

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

Parametreler

pDrawItemStruct
VSDRAWITEMSTRUCT[]

'ndaki Bilgileri, VSDRAWITEMSTRUCT IVsImageButton.Draw sahibi tarafından çizilen denetim ya da menü öğesi için, çizilmesi gereken bir yapıda sağlar.

fHot
Int32

'ndaki Ne zaman true düğme, fare işaretçisi düğmenin üzerindeyken görünümü değiştirir.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

VSPackage tarafından oluşturulan bir düğmeye bir resim çizer. Düğme BS_OWNERDRAW stile sahip olmalıdır.

COM Imzası

Vsshell80. IDL adresinden:

[C++]

HRESULT Draw(  
   VSDRAWITEMSTRUCT* pDrawItemStruct,   
   BOOL fHot  
);  

Şunlara uygulanır