hoho~~ 哪位大侠懂得啊!?

chaojicainiao 2006-10-28 10:03:06

在C#里面调用API函数,想做的是改变鼠标移动的灵敏度,就不知道这个函数怎么用来着??

提示错误说找不到Nonclientmetrics这个类型或者命名空间??

[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
private static extern bool SystemParametersInfo(int uiAction, int uiParam,
ref Nonclientmetrics ncMetrics, int fWinIni);



哪位大侠知道,到底怎么修改鼠标的灵敏度呀??
...全文
77 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ikarishinjieva 2006-10-29
  • 打赏
  • 举报
回复
如果只是说鼠标速度的话可以用
[DllImport("user32",EntryPoint="SystemParametersInfo")]
public static extern int SystemParametersInfoGetMouseSpeed(int uAction, int uParam, ref int lpvParam, int fuWinIni);
[DllImport("user32", EntryPoint = "SystemParametersInfo")]
public static extern int SystemParametersInfoSetMouseSpeed(int uAction, int uParam, int lpvParam, int fuWinIni);
设置鼠标速度

如果有问题跟我联系ikari.shinji.eva@gmail.com
oolongTea 2006-10-28
  • 打赏
  • 举报
回复
参考下此文
http://www.codeproject.com/cs/miscctrl/MessageBoxEx.asp
avisnet 2006-10-28
  • 打赏
  • 举报
回复
你要重新定义这个结构。

111,094

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧