a亚洲精品_精品国产91乱码一区二区三区_亚洲精品在线免费观看视频_欧美日韩亚洲国产综合_久久久久久久久久久成人_在线区

首頁 > 編程 > Delphi > 正文

在delphi中如何限制鼠標的移動區(qū)域。

2019-11-18 19:00:15
字體:
供稿:網(wǎng)友
下面把鼠標的移動區(qū)域限制在(100,100,200,200)

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



下面恢復(fù)鼠標的移動區(qū)域
  windows.ClipCursor(0);

具體的列子就不用舉了吧,很簡單的。嘻嘻嘻嘻嘻

在delphi中的幫助是這么寫的:

The ClipCursor function confines the cursor to a rectangular area on the screen.
If a subsequent cursor position (set by the SetCursorPos function or the mouse)
lies outside the rectangle, Windows automatically adjusts the position to keep the
cursor inside the rectangular area.

BOOL ClipCursor(

    CONST RECT *lPRect     // pointer to structure with rectangle 
  );    


Parameters

lprc

Points to the RECT structure that contains the screen coordinates of the upper-
left and lower-right corners of the confining rectangle. If this parameter is
NULL, the cursor is free to move anywhere on the screen.



Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The cursor is a shared resource. If an application confines the cursor, it must
release the cursor by using ClipCursor before relinquishing control to another
application.
The calling process must have WINSTA_WRITEATTRIBUTES access to the window station.

上一篇:在DELPHI中用線程排序

下一篇:一個實用的Delphi屏幕拷貝程序的設(shè)計

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
學(xué)習交流
熱門圖片

新聞熱點

疑難解答

圖片精選

網(wǎng)友關(guān)注

主站蜘蛛池模板: 欧美精品一区二区三区蜜桃视频 | 欧洲成人在线视频 | 一级黄色大片视频 | 一本色道精品久久一区二区三区 | 天天操天天舔 | 国产美女精品视频免费观看 | 国产一级在线 | 欧美精品区 | 日韩在线播放一区 | 精品国产一区二区三区久久久蜜月 | 激情欧美一区二区三区 | 91在线精品一区二区 | 狠狠操操 | 亚洲一区二区三区欧美 | 色欧美片视频在线观看 | 中文字幕av一区二区三区 | 成人精品一区 | 久久99国产精品 | 一级一级特黄女人精品毛片 | 毛片视频免费 | 精品久 | 国产77777 | 国产精品呻吟久久av图片 | 91麻豆视频 | 91精品国产91综合久久蜜臀 | 久草高清| 日韩欧美一区二区三区免费观看 | 国产精品永久免费视频 | 日韩欧美视频在线 | 波多野结衣电影一区 | 黄色一级视屏 | 激情小视频在线观看 | 精品视频一区二区三区 | 久久久久久久久久网站 | 日本成人中文字幕 | 国产精品中文字幕在线播放 | 精品国产乱码久久久久久88av | 欧美日韩大片在线观看 | 国产精品一区人伦免视频播放 | 久久精品网 | 不卡av免费在线观看 |