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
This commit is contained in:
Julian Smart 2003-06-08 23:56:27 +00:00
parent 76158d52be
commit 1c84423290

View File

@ -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);
}