diff --git a/base/applications/msconfig_new/comctl32ex/comctl32supp.h b/base/applications/msconfig_new/comctl32ex/comctl32supp.h index e426eaec4d3..a671d1c9702 100644 --- a/base/applications/msconfig_new/comctl32ex/comctl32supp.h +++ b/base/applications/msconfig_new/comctl32ex/comctl32supp.h @@ -10,10 +10,6 @@ #define __COMCTL32SUPP_H__ #include -/* -#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) -#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) -*/ #define Button_IsEnabled(hwndCtl) IsWindowEnabled((hwndCtl)) diff --git a/base/shell/explorer/precomp.h b/base/shell/explorer/precomp.h index e62b6efbb75..1db8538dce8 100644 --- a/base/shell/explorer/precomp.h +++ b/base/shell/explorer/precomp.h @@ -64,9 +64,6 @@ extern HANDLE hProcessHeap; extern HKEY hkExplorer; extern BOOL bExplorerIsShell; -#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) -#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) - /* * explorer.c */ diff --git a/dll/shellext/stobject/precomp.h b/dll/shellext/stobject/precomp.h index cefd8ea16e0..674a32ebf0f 100644 --- a/dll/shellext/stobject/precomp.h +++ b/dll/shellext/stobject/precomp.h @@ -34,9 +34,6 @@ extern HINSTANCE g_hInstance; #define ID_ICON_HOTPLUG (WM_APP + 0x4CC) #define ID_ICON_POWER (WM_APP + 0x4CD) -#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) -#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) - #include "csystray.h" typedef HRESULT(STDMETHODCALLTYPE * PFNSTINIT) (_In_ CSysTray * pSysTray); diff --git a/dll/win32/browseui/internettoolbar.cpp b/dll/win32/browseui/internettoolbar.cpp index a48efd61e20..d6f6145553d 100644 --- a/dll/win32/browseui/internettoolbar.cpp +++ b/dll/win32/browseui/internettoolbar.cpp @@ -25,10 +25,6 @@ toolbar, and address band for an explorer window #include "precomp.h" -/* FIXME, I can't include windowsx because it conflicts with some #defines */ -#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) -#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) - #if 1 interface IAugmentedShellFolder : public IShellFolder diff --git a/dll/win32/browseui/shellbars/shellbars.h b/dll/win32/browseui/shellbars/shellbars.h index 59221c4e286..a9ad17a8d28 100644 --- a/dll/win32/browseui/shellbars/shellbars.h +++ b/dll/win32/browseui/shellbars/shellbars.h @@ -31,9 +31,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(browseui); #include "CBandSiteMenu.h" #include "CISFBand.h" -#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) -#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) - #define USE_SYSTEM_ISFBAND 0 #if USE_SYSTEM_ISFBAND diff --git a/dll/win32/browseui/toolsband.cpp b/dll/win32/browseui/toolsband.cpp index 1e855cb6600..5e98f7b2f1a 100644 --- a/dll/win32/browseui/toolsband.cpp +++ b/dll/win32/browseui/toolsband.cpp @@ -24,10 +24,6 @@ Implements the toolbar band of a cabinet window #include "precomp.h" -/* FIXME, I can't include windowsx because it conflicts with some #defines */ -#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) -#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) - class CToolsBand : public CWindowImpl, public CComObjectRootEx, diff --git a/dll/win32/shell32/shellmenu/CMenuToolbars.cpp b/dll/win32/shell32/shellmenu/CMenuToolbars.cpp index fd98086e4a2..2431ee84c9c 100644 --- a/dll/win32/shell32/shellmenu/CMenuToolbars.cpp +++ b/dll/win32/shell32/shellmenu/CMenuToolbars.cpp @@ -28,9 +28,6 @@ #define IDS_MENU_EMPTY 34561 -#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) -#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) - WINE_DEFAULT_DEBUG_CHANNEL(CMenuToolbars); // FIXME: Enable if/when wine comctl supports this flag properly diff --git a/sdk/lib/atl/atlwin.h b/sdk/lib/atl/atlwin.h index a4f717c7c21..3539c13afaf 100644 --- a/sdk/lib/atl/atlwin.h +++ b/sdk/lib/atl/atlwin.h @@ -52,6 +52,15 @@ inline LONG_PTR GetWindowLongPtr(HWND hWnd, int nIndex) namespace ATL { +#ifndef GET_X_LPARAM +#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp)) +#endif +#ifndef GET_Y_LPARAM +#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp)) +#endif + + + struct _ATL_WNDCLASSINFOW; typedef _ATL_WNDCLASSINFOW CWndClassInfo;