Two Plus Two Older Archives

Two Plus Two Older Archives (http://archives2.twoplustwo.com/index.php)
-   Computer Technical Help (http://archives2.twoplustwo.com/forumdisplay.php?f=46)
-   -   C/C++ Help Needed... (http://archives2.twoplustwo.com/showthread.php?t=305217)

CallMeIshmael 08-01-2005 01:06 PM

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

Scratch 08-01-2005 04:25 PM

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.

CallMeIshmael 08-01-2005 05:06 PM

Re: C/C++ Help Needed...
 
TY kindly good sir.

JoePro 08-02-2005 02:50 PM

Re: C/C++ Help Needed...
 
Actually, it's bit 24. bits 25-28 are reserved.

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


All times are GMT -4. The time now is 08:07 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.