Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > General Gambling > Computer Technical Help

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2005, 01:06 PM
CallMeIshmael CallMeIshmael is offline
Senior Member
 
Join Date: Dec 2004
Location: RIP Mitch Hedberg
Posts: 1,097
Default 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
Reply With Quote
  #2  
Old 08-01-2005, 04:25 PM
Scratch Scratch is offline
Junior Member
 
Join Date: Oct 2003
Posts: 0
Default 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.
Reply With Quote
  #3  
Old 08-01-2005, 05:06 PM
CallMeIshmael CallMeIshmael is offline
Senior Member
 
Join Date: Dec 2004
Location: RIP Mitch Hedberg
Posts: 1,097
Default Re: C/C++ Help Needed...

TY kindly good sir.
Reply With Quote
  #4  
Old 08-02-2005, 02:50 PM
JoePro JoePro is offline
Senior Member
 
Join Date: May 2005
Posts: 206
Default Re: C/C++ Help Needed...

Actually, it's bit 24. bits 25-28 are reserved.

EDIT:nm.. i guess bit 24 = 25th bit
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:23 PM.


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