typedef void __fastcall (__closure *TTVAdvancedCustomDrawEvent)(TCustomTreeView* Sender, const System::Types::TRect &ARect, TCustomDrawStage Stage, bool &DefaultDraw);
Sender is the tree-view control that is being painted.
ARect is the rectangle that defines the boundaries of the tree-view control on its canvas.
Stage indicates the current stage of the painting process.
DefaultDraw specifies whether the control should paint itself after the event handler exits. This parameter is only used when Stage is cdPrePaint.