https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e6fb0e0c25d4509bf30a6…
commit e6fb0e0c25d4509bf30a6ad602c9ba7d143cd77a
Author: Joachim Henze <joachim.henze(a)reactos.org>
AuthorDate: Sat Oct 22 21:48:11 2022 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Oct 22 21:48:11 2022 +0200
[SHELL32] Delete old unused implementation of OLD_SHAppBarMessage() (#4800)
SHAppBarMessage() was reimplemented at a different place by
0.4.14-dev-1209-g 10d1afea18db0ef06942239867cbc090e2330b90
That was a reimport from Wine.
---
dll/win32/shell32/wine/shell32_main.c | 66 -----------------------------------
1 file changed, 66 deletions(-)
diff --git a/dll/win32/shell32/wine/shell32_main.c
b/dll/win32/shell32/wine/shell32_main.c
index b31dedcba2c..58e114e09e1 100644
--- a/dll/win32/shell32/wine/shell32_main.c
+++ b/dll/win32/shell32/wine/shell32_main.c
@@ -965,72 +965,6 @@ typedef struct
HICON hIcon;
} ABOUT_INFO;
-#define DROP_FIELD_TOP (-15)
-#define DROP_FIELD_HEIGHT 15
-
-/*************************************************************************
- * SHAppBarMessage [SHELL32.@]
- */
-UINT_PTR WINAPI OLD_SHAppBarMessage(DWORD msg, PAPPBARDATA data)
-{
- int width=data->rc.right - data->rc.left;
- int height=data->rc.bottom - data->rc.top;
- RECT rec=data->rc;
-
- TRACE("msg=%d, data={cb=%d, hwnd=%p, callback=%x, edge=%d, rc=%s,
lparam=%lx}\n",
- msg, data->cbSize, data->hWnd, data->uCallbackMessage,
data->uEdge,
- wine_dbgstr_rect(&data->rc), data->lParam);
-
- switch (msg)
- {
- case ABM_GETSTATE:
- return ABS_ALWAYSONTOP | ABS_AUTOHIDE;
-
- case ABM_GETTASKBARPOS:
- GetWindowRect(data->hWnd, &rec);
- data->rc=rec;
- return TRUE;
-
- case ABM_ACTIVATE:
- SetActiveWindow(data->hWnd);
- return TRUE;
-
- case ABM_GETAUTOHIDEBAR:
- return 0; /* pretend there is no autohide bar */
-
- case ABM_NEW:
- /* 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));
- return TRUE;
-
- case ABM_REMOVE:
- FIXME("ABM_REMOVE broken\n");
- /* FIXME: this is wrong; should it be DestroyWindow instead? */
- /*CloseHandle(data->hWnd);*/
- return TRUE;
-
- case ABM_SETAUTOHIDEBAR:
- SetWindowPos(data->hWnd,HWND_TOP,rec.left+1000,rec.top,
- width,height,SWP_SHOWWINDOW);
- return TRUE;
-
- case ABM_SETPOS:
- data->uEdge=(ABE_RIGHT | ABE_LEFT);
- SetWindowPos(data->hWnd,HWND_TOP,data->rc.left,data->rc.top,
- width,height,SWP_SHOWWINDOW);
- return TRUE;
-
- case ABM_WINDOWPOSCHANGED:
- return TRUE;
- }
-
- return FALSE;
-}
-
/*************************************************************************
* SHHelpShortcuts_RunDLLA [SHELL32.@]
*