C# WinForm 顯示 隱藏 鼠標 .

using System.Runtime.InteropServices;  


[DllImport("user32.dll", EntryPoint="ShowCursor",CharSet=CharSet.Auto)]   
public extern static void ShowCursor(int status);  


   
調用ShowCursor(0)或ShowCursor(1)來設置.    只是調用個api.

來自:http://hi.baidu.com/qiangfans/item/64c1212ed95c35f950fd87bc

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章