Vcl.ComCtrls.TLVCustomDrawSubItemEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

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

Properties

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

Description

TLVCustomDrawSubItemEvent is the procedure type of the TCustomListView.OnCustomDrawSubItem and the TListView.OnCustomDrawSubItem events.

The Sender parameter specifies the list view that owns the subitems.

The Item parameter is the current item being drawn.

The SubItem parameter is the index of the subitem of that list item in its SubItems property.

The State property indicates various attributes that can affect the way the subitem is drawn.

Set DefaultDraw to False to prevent the list view from adding the subitem's text after the event handler exits.


See Also