[转载]动画光标
LoadCursorFromFile函数函数功能:通过标准光标文件(.cur)或动画光标文件(.ani)建立一个光标。
Visual Basic声明:
Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA"(Byval lpFileName As String) As Long
参数:
lpFileName:光标文件的名称
SetClassLong函数
函数功能:为窗口设置信息的窗口句柄
Visual Basic声明:
Declare Function SetClassLong Lib "user32" Alias "SetClassLongA"(Byval hwnd As Long,Byval nIndex As Long,Byval dwNewLong As Long) As Long
参数:
hwnd:要设置类信息的窗口句柄
nIndex:要设置的信息
dwNewLong:类信息的新值,具体取决于nIndex