I am using a crude system to control a Flash movie from a C++/win32 program by sending WM_MOUSEMOVE events directly to the Flash window.
It works well for one axis:
SendMessage( m_targetWindowHWND, WM_MOUSEMOVE, 0, xpos);
However I'd like to now send both x and y values. I know these are packed into a WM_MOUSEMOVEs lparam. In C++ this could be unpacked with MAKEPOINTS or GET_X_LPARAM/GET_Y_LPARAM.
But how do I pack the x and y, basically doing the reverse of the macros above.
My guess:
DWORD packed = y << 8 + x;
Thanks