你事先已经接到MouseDown事件了,还没有接到MouseUp,对吧
解决方案 »
- 请问ATL调用javascript函数
- 动态创建的Tree为何响应不了TVN_ITEMEXPANDED?
- 如何查找一个随机的,未用的端口?
- 有谁知道怎么执行外部的程序,并且得到程序的执行结果吗?
- ListView中已经显示出列表。如何才能在列表中得到列名字的字符串?
- 为什么我在OnDraw()中画的图形,在窗口的变大变小中总要重画?
- 可以设置列数的工具条怎么做?
- 谁知道键盘扫描码(scan code)和虚拟键值(VK_系列)有什么关系。
- 急需c++builder 4 程序运行环境,望大虾救命!!!
- 怎样用网络API函数
- 类定义中定义的函数可以不实现吗(非纯虚函数)????
- 请问如何将CString类型日期字符串转换为CTime类型?help
在这个消息中的第一个参数 fwKeys ,在 MSDN 中的解释如下:
fwKeys
Value of wParam. Indicates whether various virtual keys are down.
This parameter can be any combination of the following values: Value Description
MK_CONTROL Set if the ctrl key is down.
MK_LBUTTON Set if the left mouse button is down.
MK_MBUTTON Set if the middle mouse button is down.
MK_RBUTTON Set if the right mouse button is down.
MK_SHIFT Set if the shift key is down.
你现在只需要判断 (dwKeys | MK_LBUTTON) 为真,就可以判断左键是否按下。
同理你也可以判断其它的键是否被按下。