advertisement

Find Code  Advanced Search   

Free Newsletters:   
browse free vb code
Submit Code
ASP,  HTML, and XML
Database
Dates  and Math
Files  and Directories
Forms  and Controls
Lists,  Collections, and Arrays
Miscellaneous
Multimedia/Games
Office/VBA
Network/Internet
Registry
Screen/Graphics
String  Manipulation
System/API
Windows  2000/XP
VB.NET/ASP.NET



advertisement
Place Animated Cursors in Standard Messsageboxes

Author: Brian Reilly
Category: System/API
Type: Modules
Difficulty: Advanced

Version Compatibility:  Visual Basic 5   Visual Basic 6  

More information: It is possible to hook messages associated with the standard message box to play around with its restricted form (e.g. change button captions, etc.) This example goes a bit further and allows the changing of the icon from one of the four available to any (static) icon. Also, a routine is included to place an animated icon (*.ani file) on a form, or anything that has a hwnd property. By finding the hwnd of the Msgbox icon in the hook procedure, the animation can be placed in the msgbox, as shown in this example.

Note: animated icons cannot usually be loaded from resource files in Windows 9.X (they can be in NT, and Windows 2000), and must be loaded from a file. When expanding this zip, tick "use folder names" so the example program can find the anis in the proper place.

This code has been viewed 67082 times.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

source/Extended_Msgbox.zip

Sponsored Links