PDA

View Full Version : Accessing High and Low Byte...



LordFrost
02-14-2001, 05:04 AM
How can I access high and low bytes of a message? In T-Pascal I used msg.lParamLo and msg.lParamHi (in this case to get mousecursor coordinates), but VC++ doesn't know these.

DFrey
02-14-2001, 05:27 AM
HIWORD(msg.lParam) and LOWORD(msg.lParam)
should be what you need, assuming msg is of type MSG.

LordFrost
02-14-2001, 05:36 AM
Hey, that was fast! And exactly what I needed, thanx! http://www.opengl.org/discussion_boards/ubb/smile.gif