Vcl.ComCtrls.TLVAdvancedCustomDrawEvent
Delphi
TLVAdvancedCustomDrawEvent = procedure(Sender: TCustomListView; const ARect: TRect;
Stage: TCustomDrawStage; var DefaultDraw: Boolean) of object;
C++
typedef void __fastcall (__closure *TLVAdvancedCustomDrawEvent)(TCustomListView* Sender, const Winapi::Windows::TRect &ARect, TCustomDrawStage Stage, bool &DefaultDraw);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
type typedef |
public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | Vcl.ComCtrls |
Description
TLVAdvancedCustomDrawEvent is a procedure called by the OnAdvancedCustomDraw event.
Sender is the list view that is about to be painted.
ARect indicates the dimensions of the list view on its Canvas.
Stage indicates the current stage in the drawing process. Note that the cdPreErase and cdPostErase stages do not receive event notification. The background must be drawn when the item is rendered.
DefaultDraw is used only when Stage is cdPrePaint. It indicates whether the list view should continue with the default painting after the event handler exits. Set DefaultDraw to False to prevent the drawing of the list view after the event handler exits. If DefaultDraw remains set to True, the list view continues with the default painting process.