RES: [VBCOM] How to get KeyCode and Shift

Ronaldo Nogueira <[email protected]> Fri, 25 Apr 2003 11:46:44 -0300
Newsgroups gmane.comp.windows.devel.vbcom
Message-ID <[email protected]>
Thank you very much, Dave. It was very helpful.

Best regards,

Ronaldo.



-----Mensagem original-----
De: Technical discussion of VBCOM [mailto:[email protected]]Em
nome de David Symanowicz
Enviada em: quinta-feira, 24 de abril de 2003 19:36
Para: [email protected]
Assunto: Re: [VBCOM] How to get KeyCode and Shift


Ronaldo,

You can use GetKeyState( keyCode ) from the Win32API.  If the return value
is negative (high-order bit is set), the key is down. You can also find out
if the key is "toggled" based on the low-order bit.   See MSDN for more
info...

-Dave


-----Original Message-----
From: Technical discussion of VBCOM [mailto:[email protected]]On
Behalf Of Ronaldo Nogueira
Sent: Thursday, April 24, 2003 6:06 PM
To: [email protected]
Subject: [VBCOM] How to get KeyCode and Shift


Hi,

I'd like to know if a Key is pressed, within an Event that doesn't show the
KeyCode or Shift parameters, like DragOver, for example.
Can anybody help me?

Thanks in advance.

Regards,

Ronaldo

You can read messages from the VBCOM archive, unsubscribe from VBCOM, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the VBCOM archive, unsubscribe from VBCOM, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the VBCOM archive, unsubscribe from VBCOM, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.