I'm trying to change the cursor permanently to some other cursor.
When I do this all I get is the new cursor until I move the cursor again.
case WM_RBUTTONDOWN:
cursor = LoadCursor (NULL, IDC_CROSS) ;
SetCursor(cursor);
break;
How do I change it so that it will be permanent.. I know it has something to do with wndclass..
When I make the window in wndproc I said wndclass.hIcon to IDC_ARROW but I can't call wndclass in WM_RBUTTONDOWN..
Any help?
Each mouse movement causes a WM_SETCURSOR
message to be sent to your window; the default window procedure will respond with the configured cursor. Override to return your new cursor instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With