Delphi中限制鼠标的移动区域


本文整理自网络,侵删。

 下面把鼠标的移动区域限制在(100,100,200,200)

var
rect:TRect;
begin
rect.Left:=100;
rect.Top:=100;
rect.Bottom:=200;
rect.Right:=200;
windows.ClipCursor(@rect);
end;

恢复鼠标的移动区域
windows.ClipCursor(0);

相关阅读 >>

Delphi 获取系统串口列表

Delphi 根据delta自动生成sql语句

Delphi 获取internet缓存文件

Delphi 字符串变形替换

Delphi关于延迟时间的一点智慧

了解Delphi过程类型/过程类型学习

Delphi 判断图像格式bmp jpg gif pcx png psd ras sgi tiff err

Delphi listview中加载图片

Delphi格式化函数format、formatdatetime和formatfloat

Delphi判断不同格式的时间是否相等

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...