如题

解决方案 »

  1.   

    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