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
This commit is contained in:
Julian Smart
2003-06-09 05:06:28 +00:00
parent f5abdcb3c3
commit 46e620fc8b

View File

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