Vcl.ComCtrls.TLVDrawItemEvent
C++
typedef void __fastcall (__closure *TLVDrawItemEvent)(TCustomListView* Sender, TListItem* Item, const System::Types::TRect &Rect, Winapi::Windows::TOwnerDrawState State);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| typedef | public | Vcl.ComCtrls.hpp | Vcl.ComCtrls | Vcl.ComCtrls |
Description
TLVDrawItemEvent is the type of the list view Vcl.ComCtrls.TCustomListView.OnDrawItem and Vcl.ComCtrls.TCustomListView.OnDrawItem event handlers.
Sender is the list view control in which an item is about to be drawn.
Item is the item that is about to be drawn.
Rect defines the coordinates of the item on the list view's canvas.
State indicates various conditions that can influence how the item is drawn, such as whether it is selected, grayed, or focused.