Vcl.ComCtrls.TLVAdvancedCustomDrawEvent

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TLVAdvancedCustomDrawEvent)(TCustomListView* Sender, const System::Types::TRect &ARect, TCustomDrawStage Stage, bool &DefaultDraw);

Properties

Type Visibility Source Unit Parent
typedef public 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.

See Also