Sign in Join
FPDoc Onlineexperiment

TCDControl.EraseBackground procedure

Member of TCDControlpublicIn unit CustomDrawnControls

Declaration

pascal
procedure EraseBackground(DC: HDC); override

Description

Not described here; this is what TWinControl.EraseBackground says of it:

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

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.

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