Vcl.Forms.TCustomForm.PaintWindow
Delphi
procedure PaintWindow(DC: HDC); override;
C++
virtual void __fastcall PaintWindow(HDC DC);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Renders the image of the form.
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.