CVI里什么函数可以设置鼠标移动速度
CVI里什么函数可以设置鼠标移动速度? 望解答 在网上搜索了一下,应该要用CVI调用系统的API了!Win98/2k/xp下用SystemParametersInfo,带SPI_SETMOUSESPEED参数。(详细参照MSDN)
Win95/NT下用SystemParametersInfo,带SPI_SETMOUSE参数。
int mouseInfo; // We need an array (size 3) of int for mouse information
// mouseInfo & mouseInfo give two threshold values for mouse
// mouseInfo gives the mouse acceleration.
SystemParametersInfo (SPI_GETMOUSE, NULL, &mouseInfo, NULL); // Get current settings
mouseInfo = 10; // new value
SystemParametersInfo (SPI_SETMOUSE, NULL, &mouseInfo, NULL); // Set new settings
页:
[1]