[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TWinControl.EraseBackground

Fills the entire control with the designed background color and pattern.

Declaration

Source position: controls.pp line 2272

public procedure TWinControl.EraseBackground(

  DC: HDC

); virtual;

Arguments

DC

  

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

Description

This method can be called during Paint requests only, which provide an valid DC.

The background may be transparent or non-rectangular as well!

The latest version of this document can be found at lazarus-ccr.sourceforge.net.