How to set new cursor?

Hello,

I set the cursor of the initial WNDCLASSEX struct of a window to LoadCursor(NULL, IDC_ARROW). However, at another point in my app, I want to change the cursor appearance. I have tried using

SetCursor(LoadCursor(g_hInst, MAKEINTRESOURCE(IDC_HANDCURSOR)));

and

SetClassLong(hWnd, GCL_HCURSOR, (LONG)LoadCursor(g_hInst, MAKEINTRESOURCE(IDC_HANDCURSOR)));

but neither seem to work. Please post suggestions on how to fix my problem here, thanks.

Fierytycoon
[513 byte] By [Fierytycoon] at [2007-11-17 10:27:32]