Reshaping a window along with it's subwindows

Hi i am a novice ,and need some help…
how can i reshape a window along with its subwindows…so that each dispay on the scrren (including those visible in the subwindows) are changed proportionatly…

This is not related at all to OpenGL, it depends only on the tool you are using to create your GUI.