[ATL] Add GET_X_LPARAM and GET_Y_LPARAM to atlwin.h

Remove all local definitions
This commit is contained in:
Mark Jansen 2019-01-14 20:50:37 +01:00 committed by Giannis Adamopoulos
parent 007ec0310c
commit f9e50f5471
8 changed files with 9 additions and 24 deletions

View file

@ -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;