The IDrawItemEvent class provides the draw-item event information for containers, list boxes, menus, notebooks, sliders, and progress indicators.
You can construct and destruct objects of this class.
![]() |
public:
virtual ~IDrawItemEvent()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
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.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
These members access the draw-item data from objects of this class.
![]() |
protected:
void* ownerItemData() const
Returns a pointer to a structure holding the draw-item data.
Windows | OS/2 | AIX |
Yes | Yes | No |
The returned value is a pointer to an OWNERITEM structure.
The returned value is a pointer to a DRAWITEMSTRUCT structure.
The event contains information for drawing an item. Use these members to identify the item and its location.
![]() |
public:
virtual unsigned long itemId() const
Returns the identifier for the item.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual IPresSpaceHandle itemPresSpaceHandle() const
Returns the presentation space to use for drawing the item.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual IRectangle itemRect() const
Returns the screen rectangle of the item, relative to the control returned by IEvent::controlWindow.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
virtual ~IControlEvent()
virtual unsigned long controlId() const
IControlEvent(const IEvent& event)
IControlEvent(const IControlEvent& event)
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