|
#1
|
|||
|
|||
C/C++ Help Needed...
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 |
#2
|
|||
|
|||
Re: C/C++ Help Needed...
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. |
#3
|
|||
|
|||
Re: C/C++ Help Needed...
TY kindly good sir.
|
#4
|
|||
|
|||
Re: C/C++ Help Needed...
Actually, it's bit 24. bits 25-28 are reserved.
EDIT:nm.. i guess bit 24 = 25th bit |
|
|