PDA

View Full Version : C/C++ Help Needed...


CallMeIshmael
08-01-2005, 01:06 PM
Does anyone know how to differentiate between a WM_KEYDOWN message sent from the Home key above the arrows and the Home key on the num pad (when you have num locks off).


They have different lParam's, but, is this always the case, and on all versions of XP?

Thanks

Scratch
08-01-2005, 04:25 PM
Check the 25th bit in lParam. If it's on, then it's the numpad's Home. If it's off, it's the regular Home key.

This should be the same regardless of OS version.

CallMeIshmael
08-01-2005, 05:06 PM
TY kindly good sir.

JoePro
08-02-2005, 02:50 PM
Actually, it's bit 24. bits 25-28 are reserved.

EDIT:nm.. i guess bit 24 = 25th bit