X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/088a95f5ffcbcb035596f52cf035372d13d280fc..52cbfcf009d9f2ac995280bd6f5dcf584295b67d:/src/msw/frame.cpp diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 7beb0561a4..a45bf2ea6b 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -683,6 +683,12 @@ void wxFrame::MSWOnSize(int x, int y, WXUINT id) switch (id) { case SIZENORMAL: + // only do it it if we were iconized before, otherwise resizing the + // parent frame has a curious side effect of bringing it under it's + // children + if ( !m_iconized ) + break; + // restore all child frames too IconizeChildFrames(FALSE); @@ -690,14 +696,14 @@ void wxFrame::MSWOnSize(int x, int y, WXUINT id) case SIZEFULLSCREEN: m_iconized = FALSE; - break; + break; case SIZEICONIC: // iconize all child frames too IconizeChildFrames(TRUE); m_iconized = TRUE; - break; + break; } if (!m_iconized)