大家都知道,用key_event(VK_SHIFT,0,0,0)可以实现‘按住’SHIFT键,用key_event(VK_SHIFT,0,2,0)可以实现‘释放’SHIFT键,我的问题是假设key_event(VK_SHIFT,0,0,0)之后,用那个API可以识别到SHIFT的按键是‘按住’的,即如何识别像SHIFT等键的状态?
解决方案 »
- 关于DBGRIDEH多选
- Delphi 2010和XE哪个更好、更稳定一些???
- TSOAPAttachment为什么不能正常传送附件?
- 怎么把一个TWinControl的对象和一个已存在窗口的handle关联上?
- ★有没有办法不用OnDrawCell来设置StringGrid中某个单元格的背景颜色,和文字颜色???
- 程序退出时总有一个这样的错误?请问高手如何跟踪调试呢?
- delphi中用ADO的Microsoft OLE DB连接Oracle不行,其他可以,怎么解决
- 在程序中使用SQL语句报错
- 怎么安装第三方控件啊,请各位给出个详细步骤,谢谢了,我给你下跪了!!!!!!!!!!!!!!!!!!!!!!!!!!11
- 为什么我的statusbar没有反应
- 请问如何控制flash的快进和后退
- >>>>>>>关于通过ADO连接数据库的问题<<<<<<<<<<<<
If the function succeeds, the return value specifies the status of the given virtual key. If the high-order bit is 1, the key is down; otherwise, it is up. If the low-order bit is 1, the key is toggled. A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled.