From: Julian Smart Date: Sun, 8 Jun 2003 23:56:27 +0000 (+0000) Subject: Only bring the window to the top in Show() if we're a top-level X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1c8442329008dd2209f76714ff4f5904043bfde8 Only bring the window to the top in Show() if we're a top-level window, else we mess up z-order/tab order git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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); }