Hello,when I use macro GET_X_LPARAM() and GET_Y_LPARAM(),the compiler said that it is undefine,but i have included the windows.h following msdn,what was wrong indeed?
Printable View
Hello,when I use macro GET_X_LPARAM() and GET_Y_LPARAM(),the compiler said that it is undefine,but i have included the windows.h following msdn,what was wrong indeed?
i don't know what was wrong
just use it HIWORD and LOWORD
IIRC
QSoft
http://qsoft.ragestorm.com
But from the MS DOC:
Important Do not use the LOWORD or HIWORD macros to extract the x- and y- coordinates of the cursor position because these macros return incorrect results on systems with multiple monitors. Systems with multiple monitors can have negative x- and y- coordinates, and LOWORD and HIWORD treat the coordinates as unsigned quantities.
GET_X_LPARAM is in Windowsx.h
After 12 years, I hope the OP found it!
Viggy
How did it get so late so soon? :confused:
In my defence though, since I came accross this, others would have done so too - and the reply as it stood would (and probably did) have caused more problems.