你是想实现只用鼠标单击就能实现和按住ctrl一样的多选效果吗? 我想这个消息会对你有帮助~~ WM_LBUTTONDOWN 其中它的wParam Indicates whether various virtual keys are down. This parameter can be one or more of the following values. MK_CONTROL //这个标志可以让windows以为你同时按下了ctrl键 The CTRL key is down. MK_LBUTTON The left mouse button is down. MK_MBUTTON The middle mouse button is down. MK_RBUTTON The right mouse button is down. MK_SHIFT The SHIFT key is down. MK_XBUTTON1 Windows 2000/XP: The first X button is down. MK_XBUTTON2 Windows 2000/XP: The second X button is down.
让用户按住CTRL就行了。要不你就用程序修改 DBGrid1.SelectedRows
详情看HELP吧
郁闷中 谁能帮我吗?????
我代码找不到啊 该怎么写??? 在什么地方啊
谢谢!!
我想这个消息会对你有帮助~~
WM_LBUTTONDOWN
其中它的wParam
Indicates whether various virtual keys are down. This parameter can be one or more of the following values.
MK_CONTROL //这个标志可以让windows以为你同时按下了ctrl键
The CTRL key is down.
MK_LBUTTON
The left mouse button is down.
MK_MBUTTON
The middle mouse button is down.
MK_RBUTTON
The right mouse button is down.
MK_SHIFT
The SHIFT key is down.
MK_XBUTTON1
Windows 2000/XP: The first X button is down.
MK_XBUTTON2
Windows 2000/XP: The second X button is down.