Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]


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


Source position: controls.pp line 2125

protected procedure TWinControl.PaintWindow(


); virtual;




Device context with the requested clipping region.


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.

CT Web help

CodeTyphon Studio