I created a cursor as a bitmap in the VC bitmap editor. It's 16x16, monochrome bitmap, and I used this code to try to get it displayed:
After the SetCursor, the cursor has not changed.
As an aside, cursors have a hot spot in their image, which can be set if you create a cursor on the fly using CreateCursor, but if you load it from a resource I don't see anywhere that can be established. Does anyone know how that is done?
Code:
static HCURSOR hcZoom;
...
long flags = LR_DEFAULTSIZE | LR_LOADTRANSPARENT | LR_SHARED | LR_MONOCHROME;
hcZoom = (HCURSOR) LoadImage (hInstance, MAKEINTRESOURCE (IDB_BITMAP), IMAGE_CURSOR, 0, 0, flags);
...
SetCursor (hcZoom);
As an aside, cursors have a hot spot in their image, which can be set if you create a cursor on the fly using CreateCursor, but if you load it from a resource I don't see anywhere that can be established. Does anyone know how that is done?