i change the system cursor with SetSystemCursor but when i try to reset the system cursor to nornal with DestroyCursor nothing happens !!
Any ideas ?
Thanks !
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As documented, the SetSystemCursor() function already destroys the passed cursor so destroying it again isn’t going to have any effect.
You’ll need to store a copy of the old cursor so you can restore it later:
And restore it like this:
Note the considerable pain you cause when your program terminates without restoring the cursor. As experienced by me testing this code. Changing system cursors is quite unfriendly since it has a global effect on all other programs that run on the desktop.