Board index » cppbuilder » How i can obtain the TRect of MDIChild ???

How i can obtain the TRect of MDIChild ???

I have to maximize an MDIChild.
How calculate the TRect, coordinate of the MDIForm in order to be perfectly
contained in the MainForm.
The MainForm have a Caption, systemMenu and ToolBar.

Thanks

 

Re:How i can obtain the TRect of MDIChild ???


Ciao Paolo,
You can try with :
MDIChild->BoundsRect=MDIParent->ClientRect;

HTH
Ciao
    Formentz

Paolo ha scritto:

Quote
> I have to maximize an MDIChild.
> How calculate the TRect, coordinate of the MDIForm in order to be perfectly
> contained in the MainForm.
> The MainForm have a Caption, systemMenu and ToolBar.

> Thanks

--
Ciao
   Formentz

---Francesco Formenti
---Nickname: Formentz
---email: france...@leotron.com

Other Threads