I am writing a GUI application, which changes the mouse cursor image. Also, I would like to change the cursor image when user does a left click or a right click.
My algorithm takes 1-2 seconds to process some information, and during that time I need to change the cursor to another custom image. So, in summary, I need 4 custom cursor images:
1. When the application is running in the background
2. When user clicks left mouse button
3. When user clicks right mouse button
4. When the mouse is ready to accept a command
How can I achieve this? I could only change the mouse cursor to another cursor, but could not go back to the default cursor when my application exits.
I'm pretty sure that you're doing something very wrong if the cursor is permanently changed after your application closes - it should only be affected while the cursor is directly hovering over your application window.