use GET_X/Y_LPARAM as per MSDN Modified: trunk/reactos/subsys/system/servman/servman.c Modified: trunk/reactos/subsys/system/servman/servman.h _____
Modified: trunk/reactos/subsys/system/servman/servman.c --- trunk/reactos/subsys/system/servman/servman.c 2006-01-10 23:48:33 UTC (rev 20775) +++ trunk/reactos/subsys/system/servman/servman.c 2006-01-11 00:02:14 UTC (rev 20776) @@ -318,8 +318,8 @@
{ int xPos, yPos;
- xPos = LOWORD(lParam); - yPos = HIWORD(lParam); + xPos = GET_X_LPARAM(lParam); + yPos = GET_Y_LPARAM(lParam);
TrackPopupMenuEx(hShortcutMenu, TPM_RIGHTBUTTON, xPos, yPos, hwnd, NULL); } _____
Modified: trunk/reactos/subsys/system/servman/servman.h --- trunk/reactos/subsys/system/servman/servman.h 2006-01-10 23:48:33 UTC (rev 20775) +++ trunk/reactos/subsys/system/servman/servman.h 2006-01-11 00:02:14 UTC (rev 20776) @@ -1,8 +1,9 @@
#ifndef __SERVMAN_H #define __SERVMAN_H
- +#define WIN32_LEAN_AND_MEAN #include <windows.h> +#include <windowsx.h> #include <stdio.h> #include <tchar.h> #include <commctrl.h>