Sign in Join
FPDoc Onlineexperiment

TWinControl.PaintWindow procedure

Member of TWinControlprotectedIn unit Controls

Paints a clipping region for the control on the specified device context.

Declaration

pascal
procedure PaintWindow(DC: HDC); virtual

Description

PaintWindow is a method used to paint a clipping region for the control (or a child control) to the device context in DC.

PaintWindow creates a TLMessage instance using the LM_PAINT window message and the specified device context. The DefaultHandler method is called to pass the message to the widgetset class instance (and ultimately its message processing loop).

No actions are performed in the method when DC is unassigned (0), the Handle for the control has not been allocated, or the control is being freed.

PaintWindow is called from the PaintHandler method.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.