Alexandre Julliard : user32: SetParent should not make the window topmost.

Alexandre Julliard julliard at winehq.org
Thu Nov 1 07:39:41 CDT 2007


Module: wine
Branch: master
Commit: 86c8860d62ee7731526d1d488b0228c3f0193074
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=86c8860d62ee7731526d1d488b0228c3f0193074

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Oct 31 18:00:53 2007 +0100

user32: SetParent should not make the window topmost.

---

 dlls/user32/win.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index c70b0ca..f6f0512 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -2599,7 +2599,7 @@ HWND WINAPI SetParent( HWND hwnd, HWND parent )
        in the x-order and send the expected WM_WINDOWPOSCHANGING and
        WM_WINDOWPOSCHANGED notification messages.
     */
-    SetWindowPos( hwnd, HWND_TOPMOST, 0, 0, 0, 0,
+    SetWindowPos( hwnd, HWND_TOP, 0, 0, 0, 0,
                   SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | (was_visible ? SWP_SHOWWINDOW : 0) );
     /* FIXME: a WM_MOVE is also generated (in the DefWindowProc handler
      * for WM_WINDOWPOSCHANGED) in Windows, should probably remove SWP_NOMOVE */




More information about the wine-cvs mailing list