Show: Delphi C++
Display Preferences

Vcl.Controls.TWinControl.PaintControls

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure PaintControls(DC: HDC; First: TControl);

C++

void __fastcall PaintControls(HDC DC, TControl* First);

Properties

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

Description

Paints each of the child controls in a windowed control using the specified device context.

Call PaintControls to paint all the child controls of this control. Pass the device context as the value of the DC parameter. The First parameter indicates the starting point in the windowed control's child-control list to paint. If First is nil (Delphi) or NULL (C++) or does not indicate one of the child controls, PaintControls paints all the child controls.

The Repaint method calls PaintControls for the control's parent, passing the control in First to repaint the control and any controls it might intersect. PaintHandler also calls PaintControls after calling PaintWindow.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance