shell32: fix for ABM_NEW

Aric Stewart aric at codeweavers.com
Fri Oct 27 10:44:13 CDT 2006


ABM_NEW was using parameters that are not set.
-aric
-------------- next part --------------
diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c
index cd9dea9..61a3d9c 100644
--- a/dlls/shell32/shell32_main.c
+++ b/dlls/shell32/shell32_main.c
@@ -864,8 +864,9 @@ UINT WINAPI SHAppBarMessage(DWORD msg, P
         data->hWnd=GetActiveWindow();
         return TRUE;
     case ABM_NEW:
-        SetWindowPos(data->hWnd,HWND_TOP,rec.left,rec.top,
-                          width,height,SWP_SHOWWINDOW);
+		/* cbSize, hWnd, and uCallbackMessage are used. All other ignored */
+		SetWindowPos(data->hWnd,HWND_TOP,0,0,0,0,
+				SWP_SHOWWINDOW|SWP_NOMOVE|SWP_NOSIZE);
         return TRUE;
     case ABM_QUERYPOS:
         GetWindowRect(data->hWnd, &(data->rc));


More information about the wine-patches mailing list