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.