大家都知道,用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等键的状态?
解决方案 »
- 奇怪的mdi和DBgrid问题
- 如果你是项目经理,该项目怎样设计?
- TreeView如何在程序运行中添加类容,比如父节点,子节点,删除节点等?
- 交流mapinfo数字地图数据!!
- 一个关于连接access数据库小问题!
- 菜鸟请问D6中的ClientSocket的Open/Close问题,谢谢!!!
- 嵌套 select 实现多次查询?
- 怎么把实数转为整数?
- 请求高手帮忙!究竟出了什么问题 ?如何释放DLL 中的MDI 窗体 及DLL
- DCOMConnection 和SocketConnection
- 请问如何控制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.