Kirill K. Smirnov : user32: Handle WM_SETICON message similarly to WM_SETTEXT.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 13 11:08:00 CST 2007


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

Author: Kirill K. Smirnov <lich at math.spbu.ru>
Date:   Fri Jan 19 15:03:19 2007 +0300

user32: Handle WM_SETICON message similarly to WM_SETTEXT.

---

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

diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c
index d9af35c..fda2dc9 100644
--- a/dlls/user32/defwnd.c
+++ b/dlls/user32/defwnd.c
@@ -677,8 +677,8 @@ static LRESULT DEFWND_DefWinProc( HWND h
 
             USER_Driver->pSetWindowIcon( hwnd, wParam, (HICON)lParam );
 
-            SetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOSIZE |
-                         SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOZORDER);
+            if( (GetWindowLongW( hwnd, GWL_STYLE ) & WS_CAPTION) == WS_CAPTION )
+                NC_HandleNCPaint( hwnd , (HRGN)1 );  /* Repaint caption */
 
             return (LRESULT)ret;
         }




More information about the wine-cvs mailing list