VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



AnimatedCursorViewer Activex Control

by Mauricio Cunha (9 Submissions)
Category: OLE/COM/DCOM/Active-X
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

This control show Animated Cursor Files (*.ani) into a window. Count with more actions (play,pause,drawfocus,etc) and play animations files stored in Resource Files of Visual Basic Project.

API Declarations
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA" (ByVal lpFileName As Any) As Long
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Declare Function CreateWindowEx Lib "user32" Alias "CreateWindowExA" (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hwndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, lpParam As Any) As Long
Private Declare Function DestroyWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function DestroyCursor Lib "user32" (ByVal hCursor As Long) As Boolean
Private Declare Function IsWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function OSGetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal BufferLength As Long, ByVal Result As String) As Long
Private Declare Function OSGetTempFilename Lib "kernel32" Alias "GetTempFileNameA" (ByVal FilePath As String, ByVal Prefix As String, ByVal wUnique As Long, ByVal TempFileName As String) As Long
Private Declare Function DrawFocusRect Lib "user32" (ByVal hdc As Long, lpRect As RECT) As Long

Rate AnimatedCursorViewer Activex Control

Download AnimatedCursorViewer Activex Control

Download AnimatedCursorViewer Activex Control (73 KB)

AnimatedCursorViewer Activex Control Comments

No comments have been posted about AnimatedCursorViewer Activex Control. Why not be the first to post a comment about AnimatedCursorViewer Activex Control.

Post your comment

Subject:
Message:
0/1000 characters