显示动画光标(C#源代码编写)显示动画光标,当运行程序时,光标将变成动画光标

时间:2012-01-28 04:05:25
【文件属性】:
文件名称:显示动画光标(C#源代码编写)显示动画光标,当运行程序时,光标将变成动画光标
文件大小:34KB
文件格式:RAR
更新时间:2012-01-28 04:05:25
显示动画光标(C#源代码编写)显示动画光标,当运行程序时,光标将变成动画光标 显示动画光标(C#源代码编写)显示动画光标,当运行程序时,光标将变成动画光标 VisualStudio2008创建[DllImport("user32")] private static extern IntPtr SetCursor(IntPtr hCursor); [DllImport("user32")] private static extern IntPtr LoadCursorFromFile(string lpFileName); const int WM_SETCURSOR = 0x0020; private void Form1_Load(object sender, EventArgs e) { IntPtr hCursor; hCursor = LoadCursorFromFile("..\\..\\stopwtch.ani"); SetCursor(hCursor); } protected override void WndProc(ref System.Windows.Forms.Message m) { switch (m.Msg) { case WM_SETCURSOR: IntPtr hCursor; hCursor = LoadCursorFromFile("..\\..\\stopwtch.ani"); SetCursor(hCursor); break; default: base.WndProc(ref m); break; }
【文件预览】:
flashMouse
----flashMouse()
--------bin()
--------Form1.Designer.cs(1KB)
--------Program.cs(491B)
--------obj()
--------flashMouse.csproj(4KB)
--------Form1.cs(1KB)
--------STOPWTCH.ANI(7KB)
--------Form1.resx(6KB)
--------Properties()
----flashMouse.sln(920B)
----flashMouse.suo(13KB)
----readme.txt(1KB)

网友评论

  • 很喜欢这样的东西,太给力了 !
  • 功能很好。做激光打标软件模拟器,需要动态的看到激光光标怎么移动
  • 很好,功能很好,让新人很容易看懂,谢谢分享