From: "Felipe Monteiro de Carvalho" 
<[EMAIL PROTECTED]>
> Hello Yuri,
>
> How did you implement maximizing a form in KOL-CE?
>
> Take a look here:
>
> http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes#Overlapping_menu_bottom
>
> I have looked a lot, but it seams impossible to maximize a form
> perfectly in Windows CE, because sometimes the menu will not be
> considered part of the work area so you need an extra factor, but I
> have found no way to find when the factor is needed.

You can get bounding rect of menu bar using its handle. It is hwndMB 
member of SHMENUBARINFO structure.
After that you can adjust form's height if it overlaps the menubar.

Yury.
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to