|
|
发表于 2008-4-18 14:52:20
|
显示全部楼层
在网上搜索了一下,应该要用CVI调用系统的API了!
Win98/2k/xp下用SystemParametersInfo,带SPI_SETMOUSESPEED参数。(详细参照MSDN)
Win95/NT下用SystemParametersInfo,带SPI_SETMOUSE参数。
int mouseInfo[3]; // We need an array (size 3) of int for mouse information
// mouseInfo[0] & mouseInfo[1] give two threshold values for mouse
// mouseInfo [2] gives the mouse acceleration.
SystemParametersInfo (SPI_GETMOUSE, NULL, &mouseInfo, NULL); // Get current settings
mouseInfo[2] = 10; // new value
SystemParametersInfo (SPI_SETMOUSE, NULL, &mouseInfo, NULL); // Set new settings |
|