2020
11-08
11-08
Winform应用程序如何使用自定义的鼠标图片
首先,建立图片与鼠标的对应关系。classMouseStyle{[DllImport("user32.dll")]publicstaticexternIntPtrSetCursor(IntPtrcursorHandle);staticMouseStyle(){InitMouseStyle();}privatestaticvoidInitMouseStyle(){if(Hand==null){Hand=SetCursor("Image//Hand.png");}if(Arrow==null){Arrow=SetCursor("Image//Arrow.png");}}///<summary>///...
继续阅读 >