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

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

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

2019-11-17 04:08:26
字體:
來源:轉載
供稿:網友
第一種使用 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  
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 静安区| 宜昌市| 基隆市| 阳城县| 新化县| 扎囊县| 新乡县| 芜湖县| 庆阳市| 三台县| 佛冈县| 梅河口市| 阜平县| 仲巴县| 房山区| 辽宁省| 定襄县| 昭苏县| 富源县| 武平县| 忻州市| 古蔺县| 宜良县| 南投市| 鹿邑县| 裕民县| 天气| 嘉黎县| 和政县| 广昌县| 富民县| 聊城市| 慈利县| 鹤峰县| 苍溪县| 无锡市| 千阳县| 玛多县| 钟祥市| 德州市| 准格尔旗|