Description |
Parent class: XEvent
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.
GetWindowHandle |
OOL_WINDOWHANDLE handle
Returns the sytem-define window handle.
SetTextColor |
XColor * color new color
Set the text color for non-selected items
GetColumn |
XContainerColumn * the column
Returns the column from which an item must be drawn. Only use this function in container-controls!
GetObject |
XContainerObject * the object
Returns the object from which an item must be drawn. Only use this function in container-controls!
DrawItem |
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. |
Draws an item using a bitmap and/or text in XListBox, XContainerControl and XMenuBar
GetItemHandle |
ULONG theHandle
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 |
LONG theID
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 |
LONG theID
Returns the ID of the window.