]> git.saurik.com Git - wxWidgets.git/commitdiff
Only bring the window to the top in Show() if we're a top-level
authorJulian Smart <julian@anthemion.co.uk>
Sun, 8 Jun 2003 23:56:27 +0000 (23:56 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 8 Jun 2003 23:56:27 +0000 (23:56 +0000)
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

src/msw/window.cpp

index f20368679056a6bbd50b932ec4a046b0ae4abf64..9c8a049a45272eaaff7c77371822b8bb4fb1f77b 100644 (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);
     }