<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 06/05/2020 20:36, Vojtěch Čihák via
lazarus wrote:<br>
</div>
<blockquote type="cite" cite="mid:20200506203624.33384313@atlas.cz">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p style="padding:0 0 0 0; margin:0 0 0 0;">AFAIK with
TCustomControl you obtain just Resize and then Paint.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Paint is preceded by
WMPaint. You should move your code to one of these methods.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> <br>
</p>
</blockquote>
<br>
Probably done by the OS. <br>
<br>
Example
<a class="moz-txt-link-freetext" href="https://docs.microsoft.com/en-gb/windows/win32/api/winuser/nf-winuser-movewindow?redirectedfrom=MSDN">https://docs.microsoft.com/en-gb/windows/win32/api/winuser/nf-winuser-movewindow?redirectedfrom=MSDN</a><br>
If called to change the size and called with bRepaint then
invalidation is taken care of.<br>
</body>
</html>