[try2] user32:handle WM_SETICON message similar to WM_SETTEXT

Kirill K. Smirnov lich at math.spbu.ru
Fri Jan 19 06:03:19 CST 2007


-------------- next part --------------
diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c
index 9278ddd..9cd2171 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-patches mailing list