Change mouse cursor using WINAPI

2

I can not change the mouse cursor when I release the right mouse button. Part of my code:

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

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

    
asked by anonymous 23.03.2014 / 21:27

1 answer

1

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

    
16.05.2014 / 21:00