Description


Include file: xitmdevn.h

Parent class: XEvent

Overview

An XItemDrawEvent is catched with a XItemDrawHandler. This event occures if a listbox, menu or container is set with the style OWNERDRAW. In this case the items must be drwan by the application.

Functions

GetWindowHandle

Return-Value

OOL_WINDOWHANDLE handle

Remarks

Returns the sytem-define window handle.

SetTextColor

Parameters

XColor * color new color

Remarks

Set the text color for non-selected items

GetColumn

Return-Value

XContainerColumn * the column

Remarks

Returns the column from which an item must be drawn. Only use this function in container-controls!

GetObject

Return-Value

XContainerObject * the object

Remarks

Returns the object from which an item must be drawn. Only use this function in container-controls!

DrawItem

Parameters

XBitmap * bitmap A bitmap to display (can be NULL)
char * text Text to display (can be NULL)
BOOL drawOver If FALSE (default) first the bitmap is drawn and the text is drawn right from the bitmap. If TRUE, the text is drawn over the bitmap.

Remarks

Draws an item using a bitmap and/or text in XListBox, XContainerControl and XMenuBar

GetItemHandle

Return-Value

ULONG theHandle

Remarks

Returns a handle to the item which must redrawn. Only use this function in listbox-controls! (There you can set the handle with XListBox::SetItemhandle() )

GetItemID

Return-Value

LONG theID

Remarks

Returns the ID of the item to draw. Don∩t use this function in container-controls! (use XItemDrawEvent::GetObject() and XItemDrawEvent::GetColumn() to find out what you have to draw )

GetWindowID

Return-Value

LONG theID

Remarks

Returns the ID of the window.


This document was generated by Jens von Pilgrim's Autodoc