Sign in Join
FPDoc Onlineexperiment

TCustomForm.PaintWindow procedure

Member of TCustomFormprotectedIn unit Forms

Calls the Paint method using the specified device context in the control Canvas.

Declaration

pascal
procedure PaintWindow(dc: Hdc); override

Arguments

dc

Device context (Handle) assigned to the Canvas for the form.

Description

PaintWindow is an overridden method in TCustomForm. It re-implements the method from the ancestor class, and does not call the inherited method.

PaintWindow assigns the device context in dc to the Canvas handle. The Paint method is called to signal the OnPaint event handler (when assigned). If a design surface is active for the form instance, its PaintGrid method is called. The Canvas handle is reset to 0 prior to exiting from the method.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.