国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

C# 如何獲取屏幕光標位置

2019-11-17 04:07:44
字體:
來源:轉載
供稿:網友
第一種使用 API 方式

view plaincopy to clipboardPRint?
[DllImport("User32.dll")]   
public static extern int GetCursorPos(out Point point);   
public static Point ScreenCursorPosition   
{   
    get  
    {   
        Point showPoint = new Point();   
        GetCursorPos(out showPoint);   
        return showPoint;   
    }   
}  
[DllImport("User32.dll")]
public static extern int GetCursorPos(out Point point);
public static Point ScreenCursorPosition
{
    get
    {
        Point showPoint = new Point();
        GetCursorPos(out showPoint);
        return showPoint;
    }
}

第二種 .Net 提供的最直接的屬性

view plaincopy to clipboardprint?
System.Windows.Forms.Cursor.Position  
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 东平县| 清水县| 尉氏县| 武城县| 鹤峰县| 平和县| 乌恰县| 颍上县| 马龙县| 剑川县| 泾川县| 嘉黎县| 湘阴县| 永泰县| 喀喇沁旗| 北京市| 淮北市| 正镶白旗| 云南省| 嘉义县| 来安县| 商丘市| 安化县| 芒康县| 安宁市| 宁远县| 凤庆县| 班玛县| 葵青区| 车致| 黑龙江省| 当阳市| 卢氏县| 平和县| 乌鲁木齐市| 伊川县| 遵义市| 天峨县| 鲁甸县| 原阳县| 伊川县|