Compartir a través de


VSDRAWITEMSTRUCT Structure

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)

Syntax

'Declaration
Public Structure VSDRAWITEMSTRUCT
public struct VSDRAWITEMSTRUCT
public value class VSDRAWITEMSTRUCT
[<Sealed>]
type VSDRAWITEMSTRUCT =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The VSDRAWITEMSTRUCT type exposes the following members.

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Fields

  Name Description
Public field CtlID Represents the identifier of the control.
Public field CtlType Represents the control type.
Public field hdc A handle to a device context; this device context must be used when performing drawing operations on the control.
Public field hwndItem A handle to the control for the button.
Public field itemAction Represents the required drawing action.
Public field itemData This is zero for a button control type.
Public field itemid The identifier for the item, not used for buttons.
Public field itemState The visual state of the item after the current drawing action takes place.
Public field rcItem A 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.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace