How to create animated cursor or cursor with color’s?


We cannot create a colored cursor in Resource Editor. To create it we need an editor called Image Editor which comes as a sample in VC++ 5.0 CD. It provides all the drawing tools and color palette using which we can draw the cursor. Save it as ‘.cur’ file. Now, we can import it in our application by selecting Insert | Resource | Cursor and then selecting the ‘.cur’ file. Load it using LoadCursor( ) and display it using AfxRegisterWndClass( ).

To create animated cursor we need an editor called ‘aniedit’ which is given in VC++ 5.0 CD. Create different frames in the editor and save these frames in an ‘.ani’ file. Load the cursor using ::LoadCursorFromFile( ) and pass the handle returned by this function to AfxRegisterWndClass( ) function.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>