[comp.os.os2.programmer] ALT and CTRL keys

melling@cs.psu.edu (Michael D Mellinger) (10/31/90)

How can I determine if the ALT or control keys have been pressed using
MS C 6.0?  I would like the routine to work for Windows 3.0 and OS/2.
Also, I want to be able to determine what other character has been
pressed in concert with the ALT or control key.

-Mike

lsalomo@hubcap.clemson.edu (lsalomo) (11/01/90)

From article <Fslaad+2@cs.psu.edu>, by melling@cs.psu.edu (Michael D Mellinger):
> 
> How can I determine if the ALT or control keys have been pressed using
> MS C 6.0?  I would like the routine to work for Windows 3.0 and OS/2.
> Also, I want to be able to determine what other character has been
> pressed in concert with the ALT or control key.
> 
> -Mike

You're window proc will receive a WM_CHAR with KC_ALT set in mp1 (I can't
remember if it is high-word or low-word).

Cheers,
Q - the "Q"uestor for knowledge (, a degree, etc.)

lsalomo@hubcap.clemson.edu
ibmman@clemson.clemson.edu
=============================================================================
"Gee Wally, I think there's something wrong with the Beaver."
=============================================================================