Use GetWindowRect to get the window size from out
Use GetClientRect to get the inner rect that can draw in it.
the deffrent between the 2 of rect is depend on the theme you are use,
But you must notice the ClientRect is always has Left, Top = 0; so try to
offset the WindowRect to 0, 0

On Wed, Apr 7, 2010 at 8:24 PM, Faber <[email protected]> wrote:

> > Hi,
> >
> > Form1.ClientHeight, Form1.ClientWidth not a good solution for you?
> >
>
> form1.ClientHeight is smaller then form1.Height, in my case 538 vs. 557
> (19px)
>
> regards
> faber
>
> --
> _______________________________________________
> Lazarus mailing list
> [email protected]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Zaher Dirkey
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to