Sign in Join
FPDoc Onlineexperiment

TWinControl.EraseBackground procedure

Member of TWinControlpublicIn unit Controls

Fills the display rectangle for the control with the color and pattern in Brush.

Declaration

pascal
procedure EraseBackground(DC: HDC); virtual

Arguments

DC

The device context to use; may be clipped to a certain shape.

Description

EraseBackground is called during Paint requests from the WMEraseBkgnd method, which provides a valid device context in the DC argument. No actions are performed in the method when DC contains 0 (unassigned).

The FillRect routine is called to perform the operation using the Width, Height, and the handle in the Brush property.

See also

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