::
::
::
::
::
Code
public class Win32API
{
[DllImport("user32.dll")]
public static extern IntPtr LoadCursorFromFile(string s);
}
设置光标:
IntPtr cursor=Win32API.LoadCursorFromFile("..\\*.ani");参数是光标文件
if (cursor!=IntPtr.Zero)
{
Cursor cur=new Cursor(cursor);
this.Cursor=cur;
}
posted on
2009-01-10 14:40
熵星尘
阅读(
465)
评论()
编辑
收藏
举报