Sign in Join
FPDoc Onlineexperiment

TCustomControl.WMPaint procedure

Member of TCustomControlprotectedIn unit Controls

Handles LM_PAINT messages for the control.

Declaration

pascal
procedure WMPaint(var Message: TLMPaint); message

Arguments

Message

Message handled in the method.

Description

Re-implements the method from the ancestor class to update ControlState prior to handling the specified Message. Includes the value csCustomPaint in ControlState before calling the inherited method. Removes csCustomPaint from ControlState after the message has been handled.

No actions are performed in the method when the control is being freed, or when a Handle has not been allocated for the control.

See also

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