Contents Up Previous Next

Under Windows, MDI child windows don't size properly.

For some reason, it's not possible to programmatically resize an MDI child frame just after creation, so using Fit to size an MDI child frame around a subwindow does not work.

Also, it does not seem to be possible (on creation at least) to hide an MDI child frame, resize its subwindows, then show it.

If you are using Fit to size the child window, you must put up with seeing the windows repaint themselves: the child window will come up already visible.

However, if you know the size of the window in advance, give it an absolute size, create it with the wxMINIMIZE window style, draw the contents, then call Iconize(FALSE) to restore the window. This at least avoids seeing half-painted windows whilst things get initialized.