]> git.saurik.com Git - wxWidgets.git/commitdiff
use SetForegroundWindow instead of BringWindowToTop
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jun 2001 21:38:00 +0000 (21:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jun 2001 21:38:00 +0000 (21:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index b296e289c192b67909e86d5138925d85d6e5ee42..fb93646628c802b691625b186f58fbf2f217bb73 100644 (file)
@@ -446,7 +446,11 @@ bool wxWindow::Show(bool show)
 // Raise the window to the top of the Z order
 void wxWindow::Raise()
 {
+#ifdef __WIN16__
     ::BringWindowToTop(GetHwnd());
+#else // Win32
+    ::SetForegroundWindow(GetHwnd());
+#endif
 }
 
 // Lower the window to the bottom of the Z order