Vcl.ComCtrls.TTVCustomDrawItemEvent
C++
typedef void __fastcall (__closure *TTVCustomDrawItemEvent)(TCustomTreeView* Sender, TTreeNode* Node, TCustomDrawState State, bool &DefaultDraw);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | Vcl.ComCtrls.hpp | Vcl.ComCtrls | Vcl.ComCtrls |
Description
Used in the TCustomTreeView.OnCustomDrawItem event.
Sender is the tree-view control in which an item is about to be drawn.
Node is the item that is about to be drawn.
State is the item's current state, which is a TCustomDrawState type: one or more of cdsSelected, cdsGrayed, cdsDisabled, cdsChecked, cdsFocused, cdsDefault, cdsHot, cdsMarked, cdsIndeterminate.
DefaultDraw specifies whether the control should paint the item after the event handler exits.