Alexandre Julliard : user32: Rely on SetWindowPos to invalidate the DCEs when the window region is changed .

Alexandre Julliard julliard at winehq.org
Wed Aug 29 15:01:38 CDT 2012


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Aug 29 18:08:05 2012 +0200

user32: Rely on SetWindowPos to invalidate the DCEs when the window region is changed.

---

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

diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index c4b61a8..0ff4762 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -213,14 +213,12 @@ int WINAPI SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL bRedraw )
         SERVER_END_REQ;
     }
 
-    if (ret) ret = USER_Driver->pSetWindowRgn( hwnd, hrgn, bRedraw );
-
     if (ret)
     {
         UINT swp_flags = SWP_NOSIZE|SWP_NOMOVE|SWP_NOZORDER|SWP_NOACTIVATE|SWP_FRAMECHANGED|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE;
         if (!bRedraw) swp_flags |= SWP_NOREDRAW;
         SetWindowPos( hwnd, 0, 0, 0, 0, 0, swp_flags );
-        invalidate_dce( hwnd, NULL );
+        USER_Driver->pSetWindowRgn( hwnd, hrgn, bRedraw );
         if (hrgn) DeleteObject( hrgn );
     }
     return ret;
@@ -2004,7 +2002,7 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
     if (ret)
     {
         if (((swp_flags & SWP_AGG_NOPOSCHANGE) != SWP_AGG_NOPOSCHANGE) ||
-            (swp_flags & (SWP_HIDEWINDOW | SWP_SHOWWINDOW | SWP_STATECHANGED)))
+            (swp_flags & (SWP_HIDEWINDOW | SWP_SHOWWINDOW | SWP_STATECHANGED | SWP_FRAMECHANGED)))
             invalidate_dce( hwnd, &old_window_rect );
 
         USER_Driver->pWindowPosChanged( hwnd, insert_after, swp_flags, window_rect,




More information about the wine-cvs mailing list