diff --git a/src/msw/window.cpp b/src/msw/window.cpp index f203686790..9c8a049a45 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -581,7 +581,7 @@ bool wxWindowMSW::Show(bool show) int cshow = show ? SW_SHOW : SW_HIDE; ::ShowWindow(hWnd, cshow); - if ( show ) + if ( show && IsTopLevel() ) { wxBringWindowToTop(hWnd); }