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.


[view class]
~IMenuDrawItemEvent
public:
virtual ~IMenuDrawItemEvent()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
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.


[view class]
isChecked
public:
bool isChecked() const

If the menu item is checked, true is returned.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
isDisabled
public:
bool isDisabled() const

If the menu item is disabled, true is returned.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
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
IDrawItemEvent
IEvent

Inherited Public Data

Inherited Protected Functions

IDrawItemEvent

Inherited Protected Data