VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Animate your program cursor

Windows API Call/Explanation   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This little snippet will make the cursor animated. I.E a globe that is spinning.

Assumes
Be sure to know that the cursor you are gona use is a Animated cursor, if you don't got one you can probably find one at a windows desktop theme site.

Side Effects
Not as far as I know.

API Declarations
'This part will go into a module
'Its only 2 functions and 1 constant long :)
Declare Function LoadCursorFromFile Lib "user32" _
Alias "LoadCursorFromFileA" _
(ByVal lpFileName As String) As Long
Declare Function SetClassLong Lib "user32" _
Alias "SetClassLongA" _
(ByVal hwnd As Long, _
ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long
Public Const GCL_HCURSOR = (-12)

Rate Animate your program cursor (5(5 Vote))
Animate your program cursor.bas

Animate your program cursor Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters