[求助]有没有一个高效的方法改变程序运行时的光标
RT,虽然可以通过设置属性来达到,但这似乎不太方便,因为这样要把所有存在的控件的MouseIcon都设置一遍.那么请问怎么整体设置整个程序的光标呢?
Private Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA" (ByVal lpFileName As String) As Long
Private Declare Function SetClassLong Lib "user32" Alias "SetClassLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Sub Form_Load()
Dim HCursor As Long
HCursor = LoadCursorFromFile("F:\Program Files\Microsoft Visual Studio\Common\Graphics\Cursors\C_WAIT05.CUR")
SetClassLong Me.hwnd, -12, HCursor
End Sub