RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.PaintControls Method

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

Pascal
procedure PaintControls(DC: HDC; First: TControl);
C++
__fastcall PaintControls(HDC DC, TControl * First);

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

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!