Mega Code Archive

 
Categories / Delphi / Examples
 

Linking an animated cursor to a resource file

Question: How do I link an animated cursor to a resource file, then load it from my application? Answer: You will need to save the ani file into a res file as user data, (detailed in Borland's Technical information article Ti-3209 - "How to use a user defined resource"). Once you have successfully linked the resource to your application, you will need to save the data to a temporary file, then use the LoadImage command to get a handle to the animated cursor.