From 46e620fc8b575084d61d12b380b151f336a683da Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 9 Jun 2003 05:06:28 +0000 Subject: [PATCH] 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/branches/WX_2_4_BRANCH@21015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 39cacd941f..276de2190c 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -570,7 +570,7 @@ bool wxWindowMSW::Show(bool show) int cshow = show ? SW_SHOW : SW_HIDE; ::ShowWindow(hWnd, cshow); - if ( show ) + if ( show && IsTopLevel() ) { wxBringWindowToTop(hWnd); }