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:
parent
76158d52be
commit
1c84423290
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user