Change mouse cursor using WINAPI

Asked

Viewed 54 times

2

I cannot change the mouse cursor when I release the right mouse button. Part of mine code:

 case WM_RBUTTONUP :
            SetCursor( LoadCursor( hInstance, MAKEINTRESOURCE(IDC_MEUCURSOR1)));  
            ShowCursor(TRUE);
       return 0;

The cursor simply disappears, nothing appears. Someone helps me?

  • Somewhere in your program you do ShowCursor(FALSE);?

  • Dude, maybe this video will help you! https://www.youtube.com/watch?v=0aJPBu-1YKY

1 answer

1

Check the Loadcursor function, it is very common for the error to be in the IDC_MEUCURSOR1 resource (value of Resource. h is one, real value of the resource is another)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.