Accessing High and Low Byte...

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.

HIWORD(msg.lParam) and LOWORD(msg.lParam)
should be what you need, assuming msg is of type MSG.

Hey, that was fast! And exactly what I needed, thanx!