[Lazarus] Repainting of TWinControl children

Martin Frb lazarus at mfriebe.de
Wed May 6 20:49:34 CEST 2020


On 06/05/2020 20:36, Vojtěch Čihák via lazarus wrote:
>
> AFAIK with TCustomControl you obtain just Resize and then Paint.
>
> Paint is preceded by WMPaint. You should move your code to one of 
> these methods.
>
>

Probably done by the OS.

Example 
https://docs.microsoft.com/en-gb/windows/win32/api/winuser/nf-winuser-movewindow?redirectedfrom=MSDN
If called to change the size and called with bRepaint then invalidation 
is taken care of.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200506/1a86212d/attachment.html>


More information about the lazarus mailing list