Click to See Complete Forum and Search --> : Detecting ALT/CTRL Key


September 20th, 1999, 07:20 PM
Does anyone know how to detect ALT/CTRl Key

I want to know if Any of these two keys are pressed while I am in the Timer control.
There is know Keydown/up properties availbale!

Ravi Kiran
September 20th, 1999, 11:44 PM
Try GetKeyboardState and GetAsyncKeyState APIs. But these states are maintained per thread basis. so if another thread/process has keyboard focus then you not get the state correctly

RK