<div dir="ltr">Use GetWindowRect to get the window size from out<br>Use GetClientRect to get the inner rect that can draw in it.<br>the deffrent between the 2 of rect is depend on the theme you are use,<br>But you must notice the ClientRect is always has Left, Top = 0; so try to offset the WindowRect to 0, 0<br>
<br><div class="gmail_quote">On Wed, Apr 7, 2010 at 8:24 PM, Faber <span dir="ltr"><<a href="mailto:faber.cpu@gmail.com">faber.cpu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">> Hi,<br>
><br>
> Form1.ClientHeight, Form1.ClientWidth not a good solution for you?<br>
><br>
<br>
</div>form1.ClientHeight is smaller then form1.Height, in my case 538 vs. 557<br>
(19px)<br>
<br>
regards<br>
<font color="#888888">faber<br>
</font><div><div></div><div class="h5"><br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zaher Dirkey<br>
</div>