### IMenuDrawItemEvent

  The IMenuDrawItemEvent class provides the draw-item event information for painting draw-item menu items.

### IMenuDrawItemEvent - Member Functions and Data by Group

### Constructors & Destructor

You can construct and destruct objects of this class.

~IMenuDrawItemEvent

      public:
      virtual ~IMenuDrawItemEvent()

Supported Platforms

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

IMenuDrawItemEvent

      public:
      IMenuDrawItemEvent(IEvent& event)

  Constructs an IMenuDrawItemEvent object from the specified event. IMenuDrawItemHandler::dispatchHandlerEvent constructs objects of this class from an object of the class IEvent and passes the resulting object to its event-processing functions.

Supported Platforms

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

### Menu Item Attributes

Use menu item attribute members to determine the display attributes of a menu item about to be drawn. You only need to use these functions if you do your own drawing for the selected, checked, or disabled display attributes of a menu item. Call these members only from within an overridden version of IMenuDrawItemHandler::draw.

isChecked

      public:
      bool isChecked() const

  If the menu item is checked, true is returned.

Supported Platforms

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

isDisabled

      public:
      bool isDisabled() const

  If the menu item is disabled, true is returned.

Supported Platforms

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

isSelected

      public:
      bool isSelected() const

  If the menu item is selected, true is returned.

Supported Platforms

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

### IMenuDrawItemEvent - Inherited Member Functions and Data

#### Inherited Public Functions

  IControlEvent

  -     virtual ~IControlEvent()

  -     virtual unsigned long controlId() const

  -     IControlEvent(const IControlEvent& event)

  -     IControlEvent(const IEvent& event)

  IDrawItemEvent

  -     virtual ~IDrawItemEvent()

  -     IDrawItemEvent(const IEvent& event)

  -     virtual unsigned long itemId() const

  -     virtual IPresSpaceHandle itemPresSpaceHandle() const

  -     virtual IRectangle itemRect() const

  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

  IDrawItemEvent

  -     void* ownerItemData() const

#### Inherited Protected Data

  - None