Vcl.Controls.TWinControl.PaintHandler

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PaintHandler(var Message: TWMPaint);

C++

void __fastcall PaintHandler(Winapi::Messages::TWMPaint &Message);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Responds to WM_PAINT messages.

PaintHandler is called automatically when the control receives a WM_PAINT message. It calls the BeginPaint and EndPaint API functions, and between them paints the control's background by calling PaintWindow and any child controls by calling PaintControls.

See Also