diff --git a/dlls/user/tests/edit.c b/dlls/user/tests/edit.c index d92b2449c2f..1a830c27d86 100644 --- a/dlls/user/tests/edit.c +++ b/dlls/user/tests/edit.c @@ -20,7 +20,6 @@ #include #include -#include #include #include "wine/test.h" @@ -278,7 +277,9 @@ static void ET2_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify) static LRESULT CALLBACK ET2_WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) { switch (iMsg) { - HANDLE_MSG(hwnd, WM_COMMAND, ET2_OnCommand); + case WM_COMMAND: + ET2_OnCommand(hwnd, LOWORD(wParam), (HWND)lParam, HIWORD(wParam)); + break; } return DefWindowProc(hwnd, iMsg, wParam, lParam); } diff --git a/programs/progman/group.c b/programs/progman/group.c index 2f8c5fccfa5..81d078f7d88 100644 --- a/programs/progman/group.c +++ b/programs/progman/group.c @@ -23,7 +23,6 @@ #include #include #include "windows.h" -#include "windowsx.h" #include "progman.h" /*********************************************************************** diff --git a/programs/progman/main.c b/programs/progman/main.c index d1e2a1ee501..fd79690c772 100644 --- a/programs/progman/main.c +++ b/programs/progman/main.c @@ -22,7 +22,6 @@ #include #include #include "windows.h" -#include "windowsx.h" #include "progman.h" GLOBALS Globals; diff --git a/programs/progman/program.c b/programs/progman/program.c index 783d41576ac..d646545ef16 100644 --- a/programs/progman/program.c +++ b/programs/progman/program.c @@ -22,7 +22,6 @@ #include #include "windows.h" -#include "windowsx.h" #include "progman.h" /*********************************************************************** diff --git a/programs/winecfg/audio.c b/programs/winecfg/audio.c index b677c2a4bec..ba82e543d4f 100644 --- a/programs/winecfg/audio.c +++ b/programs/winecfg/audio.c @@ -38,7 +38,6 @@ #include #include #include -#include #include #include #include @@ -699,8 +698,8 @@ AudioDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) DWORD dwPos = GetMessagePos(); HWND tree = ((LPNMHDR)lParam)->hwndFrom; ZeroMemory(&ht, sizeof(ht)); - ht.pt.x = GET_X_LPARAM(dwPos); - ht.pt.y = GET_Y_LPARAM(dwPos); + ht.pt.x = (short)LOWORD(dwPos); + ht.pt.y = (short)HIWORD(dwPos); MapWindowPoints(HWND_DESKTOP, tree, &ht.pt, 1); SendMessageW( tree, TVM_HITTEST, 0, (LPARAM)&ht ); if (TVHT_ONITEMSTATEICON & ht.flags) @@ -735,8 +734,8 @@ AudioDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) HWND tree = ((LPNMHDR)lParam)->hwndFrom; POINT pt; ZeroMemory(&ht, sizeof(ht)); - pt.x = GET_X_LPARAM(dwPos); - pt.y = GET_Y_LPARAM(dwPos); + pt.x = (short)LOWORD(dwPos); + pt.y = (short)HIWORD(dwPos); ht.pt = pt; MapWindowPoints(HWND_DESKTOP, tree, &ht.pt, 1); SendMessageW( tree, TVM_HITTEST, 0, (LPARAM)&ht );