Vcl.ComCtrls.TLVSubItemImageEvent
C++
typedef void __fastcall (__closure *TLVSubItemImageEvent)(System::TObject* Sender, TListItem* Item, int SubItem, int &ImageIndex);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | Vcl.ComCtrls.hpp | Vcl.ComCtrls | Vcl.ComCtrls |
Description
TLVSubItemImageEvent is the type of a list view's TCustomListView.OnGetSubItemImage and TListView.OnGetSubItemImage event handlers.
The Sender
parameter is the list view that is being painted.
The Item
parameter is the item whose subitem is being painted.
The SubItem
parameter identifies the subitem from the list item's SubItems property.
The ImageIndex
parameter is an index into the list view's SmallImages property. On entry to the event handler, ImageIndex
is initialized to the value specified by the list item's SubItemImages property for the subitem. Use this event handler to change that value or to suppress the image by setting ImageIndex
to –1.