Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29062 Discussions

Re-sizing an MDI frame client wnd...

agodemar
Beginner
805 Views
How to Re-size an MDI frame client wnd in order to leave place for the status bar and "sibling controls"...
Subclassing perhaps?

0 Kudos
3 Replies
Jugoslav_Dujic
Valued Contributor II
805 Views
Normally, you should just handle WM_SIZE in the parent window; there, you should find rects of sibling controls and "subtract" them from the frame's client area. In this way, you get the size of MDI client window. See my QWToolbar sample. (I was lazy to move the status bar there as well so it remained hidden beneath the MDI client, but you can see the principle).

Jugoslav
0 Kudos
Jugoslav_Dujic
Valued Contributor II
805 Views
Sorry, typo in the URL.
0 Kudos
agodemar
Beginner
805 Views
thanks Jugoslav.

agostino
0 Kudos
Reply