Represents information used by IVsImageButton to draw an owner-drawn control.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)


The VSDRAWITEMSTRUCT type exposes the following members.

Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)

Public fieldCtlIDRepresents the identifier of the control.
Public fieldCtlTypeRepresents the control type.
Public fieldhdcA handle to a device context; this device context must be used when performing drawing operations on the control.
Public fieldhwndItemA handle to the control for the button.
Public fielditemActionRepresents the required drawing action.
Public fielditemDataThis is zero for a button control type.
Public fielditemidThe identifier for the item, not used for buttons.
Public fielditemStateThe visual state of the item after the current drawing action takes place.
Public fieldrcItemA rectangle that defines the boundaries of the control to be drawn. This rectangle is in the device context specified by the hdc member. The system automatically clips anything that the owner window draws in the device context buttons.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft