I created my own cursor in a graphics app and I want to use it to indicate a mode/state to the user. I have tried to use the Win32 SDK functions, i.e. LoadCursorFromFile, GetCursor, Set Cursor, and CopyCursor to no avail. I'm having a problem setting the registered window cursor to NULL. I use GetCursor to get the current cursor handle, then set it to NULL, i.e. cursorhandle = NULL;. Then I use the handle for my custom cursor that I obtained with LoadCursorFromFile in the SetCursor function. But I am still having a problem getting the custom cursor to remain after the mouse is moved. What am I doing wrong?
I'm attaching the cursor file for artistic merit.