RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.PaintWindow Method

Renders the image of the form.

Pascal
procedure PaintWindow(DC: HDC); override;
C++
virtual __fastcall PaintWindow(HDC DC);

Applications can't call this protected method. It is called when the form needs to be painted. 

PaintWindow locks the canvas to prevent threading issues, assigns the DC parameter as the Handle of the form's canvas, and then calls the Paint method to render the image of the form. 

 

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