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.


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

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


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


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


[view class]
itemId
public:
virtual unsigned long itemId() const

Returns the identifier for the item.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


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


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

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data