by Raghu (22 Submissions)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 6th June 2001
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
Code to Set a Animated Cursor(ani) as the MousePointer for the Form
API Declarations
Private Declare Function SetClassLong Lib "User32" (ByVal hWnd As Long,ByVal uFlags as Long,Byval HObject as Long) As Long
Private Const GCL_HCURSOR = (-12)
Dim hOldCur as long
Dim hNewCur as long
'Mail me : [email protected]
'To Change the Cursors
hNewCur = LoadCursorFromFile("C:\Windows\Cursors\Globe.Ani")
hOldCur = SetClassLong(Me.hWnd,GCL_HCURSOR,hNewCur
'To Reset the Cursor
hOldCur = SetClassLong(Me.hWnd,GCL_HCURSOR,hOldCur
No comments have been posted about Code to Set a Animated Cursor(ani) as the MousePointer for the Form. Why not be the first to post a comment about Code to Set a Animated Cursor(ani) as the MousePointer for the Form.