|
Beginner VC, hope expert advice ... Thank you!
Hello everyone! I want to use vc to realize that the mouse can become another shape when the menu item is clicked. As for the file of this shape, I have added it to the resource and named it IDC_POINTM.
SetClassLong (m_hWnd, GCL_HCURSOR, (LONG) LoadCursor (NULL, IDC_POINTM));
But I can't display the cursor I want, and the prompt error when running is:
'LoadCursorA': cannot convert parameter 2 from 'const int' to 'const char *'
Then I changed it to
SetClassLong (m_hWnd, GCL_HCURSOR, (LONG) LoadCursor (NULL, MAKEINTRESOURCE (IDC_POINTM)));
But the cursor shape does not change at all after running,
Why is this so urgent? How can we achieve the above operation? Thank you so much! |
|