Vcl.ComCtrls.TLVCustomDrawItemEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TLVCustomDrawItemEvent)(TCustomListView* Sender, TListItem* Item, TCustomDrawState State, bool &DefaultDraw);

Properties

Type Visibility Source Unit Parent
typedef public Vcl.ComCtrls.hpp Vcl.ComCtrls Vcl.ComCtrls

Description

TLVCustomDrawItemEvent is the procedure type of the TCustomListView.OnCustomDrawItem and TListView.OnCustomDrawItem events.

Sender is the list view whose item is to be drawn.

Item is the item that should be rendered.

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.

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.

See Also