本文整理自网络,侵删。
下面把鼠标的移动区域限制在(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 win10系统通知 notificationcenter1 基本用法
Delphi webbrowser选中文本操作 设置webbrowser的内容
Delphi xe 10.2.1 fmx平台 在图片上写字方法
更多相关阅读请进入《Delphi》频道 >>