### IDrawItemEvent

  The IDrawItemEvent class provides the draw-item event information for containers, list boxes, menus, notebooks, sliders, and progress indicators.

### IDrawItemEvent - Member Functions and Data by Group

### Constructors & Destructor

You can construct and destruct objects of this class.

~IDrawItemEvent

      public:
      virtual ~IDrawItemEvent()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

IDrawItemEvent

      public:
      IDrawItemEvent(const IEvent& event)

  Constructs an IDrawItemEvent from the specified event. ISliderDrawHandler::dispatchHandlerEvent constructs objects of this class from an object of the class IEvent and passes the resulting object to its event-handling functions.

  Classes derived form IDrawItemEvent also call this constructor.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Implementation

These members access the draw-item data from objects of this class.

ownerItemData

      protected:
      void* ownerItemData() const

  Returns a pointer to a structure holding the draw-item data.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | No

OS/2 Considerations

  The returned value is a pointer to an OWNERITEM structure.

Windows Considerations

  The returned value is a pointer to a DRAWITEMSTRUCT structure.

### Item Information

The event contains information for drawing an item. Use these members to identify the item and its location.

itemId

      public:
      virtual unsigned long itemId() const

  Returns the identifier for the item.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

itemPresSpaceHandle

      public:
      virtual IPresSpaceHandle itemPresSpaceHandle() const

  Returns the presentation space to use for drawing the item.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

itemRect

      public:
      virtual IRectangle itemRect() const

  Returns the screen rectangle of the item, relative to the control returned by IEvent::controlWindow.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IDrawItemEvent - Inherited Member Functions and Data

#### Inherited Public Functions

  IControlEvent

  -     virtual ~IControlEvent()

  -     virtual unsigned long controlId() const

  -     IControlEvent(const IEvent& event)

  -     IControlEvent(const IControlEvent& event)

  IEvent

  -     virtual ~IEvent()

  -     IWindowHandle controlHandle() const

  -     virtual IWindow* controlWindow() const

  -     IEvent& decrementOwnerLevels()

  -     virtual IWindow* dispatchingWindow() const

  -     unsigned long eventId() const

  -     IWindowHandle handle() const

  -     IEvent(const IEvent& event)

  -     IEvent( const IWindowHandle& handle,
                unsigned long eventId,
                const IEventParameter1& parameter1,
                const IEventParameter2& parameter2 )

  -     IEvent( IWindow* window,
                unsigned long eventId,
                const IEventParameter1& parameter1,
                const IEventParameter2& parameter2 )

  -     IEvent& operator =(const IEvent& event)

  -     IEventParameter1 parameter1() const

  -     IEventParameter2 parameter2() const

  -     bool passToOwner() const

  -     IEventResult result() const

  -     IEvent& setControlHandle(const IWindowHandle& handle)

  -     IEvent& setDispatchingHandle(const IWindowHandle& handle)

  -     IEvent& setDispatchingWindow(IWindow* window)

  -     IEvent& setHandle(const IWindowHandle& handle)

  -     IEvent& setNumberOfLevels(int levels = - 1)

  -     IEvent& setPassToOwner(bool passOn = true)

  -     IEvent& setResult(bool eventResult)

  -     IEvent& setResult(const IEventResult& eventResult)

  -     virtual IWindow* window() const

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None