Главная страница | назад





Article #16252: Shift-key pressed?

 Question and Answer Database
FAQ1252C.txt Shift-key pressed?
Category :VCL
Platform :All
Product :C++Builder 1.x
Question:
How do I detect, in an OnClick handler, if the shift-key is pressed?
Answer:
Call GetKeyState(VK_SHIFT) and query its value.
If the high order bit is set to 1, the key is down.
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99