The IListBoxSizeItemEvent class provides event information for setting the sizes of items in a list box.
You can construct and destruct objects of this class.
Although you can construct objects of this class, typically IListBoxDrawItemHandler::dispatchHandlerEvent constructs objects of this class from an object of the class IEvent.
![]() |
public:
virtual ~IListBoxSizeItemEvent()
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
public:
IListBoxSizeItemEvent(IEvent& event)
The only way to construct an object of this class is from an object of the class IEvent.
Windows | OS/2 | AIX |
Yes | Yes | No |
Use these members to query and set information about the event. This information is used to identify and size a list box item for drawing.
![]() |
public:
unsigned long itemIndex() const
Returns the 0-based index of the item in the list box that needs sizing. This value can be 0 even without any entries in the list box.
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
public:
ISize itemSize() const
Returns the value set by the function setItemSize for the size required to draw the list box item.
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
public:
IListBoxSizeItemEvent& setItemSize(const ISize& itemSize)
Sets the size required to draw a list box item. All items in the list box are sized to the height specified. The list box also draws all items to the same width, taken from the longest one needed by the items being displayed. Note that the width is only processed if the list box has a horizontal scroll bar.
Windows | OS/2 | AIX |
Yes | Yes | No |
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( IWindow* window, unsigned long eventId, const IEventParameter1& parameter1, const IEventParameter2& parameter2 )
IEvent( const IWindowHandle& handle, 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)
virtual IWindow* window() const