Vcl.ComCtrls.TLVAdvancedCustomDrawItemEvent
C++
typedef void __fastcall (__closure *TLVAdvancedCustomDrawItemEvent)(TCustomListView* Sender, TListItem* Item, TCustomDrawState State, TCustomDrawStage Stage, bool &DefaultDraw);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | Vcl.ComCtrls.hpp | Vcl.ComCtrls | Vcl.ComCtrls |
Description
TLVAdvancedCustomDrawItemEvent is a procedure called by the OnAdvancedCustomDrawItem event.
Sender
is the list view whose item is drawn.
Item
is the item that is currently being painted.
State
indicates the state of the item, so that the event handler can adjust the image to reflect whether the item is selected, disabled, hot, and so on.
Stage
indicates the current stage in drawing the list item. Note that the cdPreErase and cdPostErase stages do not receive event notification. The background must be drawn when the item is rendered.
DefaultDraw
is used only when Stage
is cdPrePaint. Set DefaultDraw
to False if you do not want the control to paint the item's text after the event handler exits. If DefaultDraw
remains True, the list view adds the item's text to the image on the canvas.