Re-sizing an MDI frame client wnd...

Re-sizing an MDI frame client wnd...

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

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Jugoslav
www.xeffort.com
Jugoslav
www.xeffort.com

thanks Jugoslav.

agostino

Leave a Comment

Please sign in to add a comment. Not a member? Join today