Changing cursor VC++
I know the "LoadCursor"/"SetCursor" stuff, thats not my problem.
My problem is that i want to use a 16bit 32X32 cursor.
When i makes that in VC++ RC-editor, the editor makes the 2-bit curosor default for the program!
How to make the 16bit default instead of the 2bit? :confused:
CreateCursor() and MSVC use a device-dependent monochrome bitmap for cursors so will always default back (same as toolbar images are 16bit in MFC)
Have you tried using LoadImage(), that is a HBITMAP cast to a HCURSOR?
hCursor = SetCursor( (HCURSOR) LoadImage(.........) );
To create a 16 bit cursor in the resource editor, you need to click a button (posted below) and then hit Custom... and make sure the colors are 16, and the size is what you want, then hit ok and you're set to go.
yes, i know that, but the monochrome-bitmap will still be default.. :(
Hrrm....? Do you mean the defaut color setting in visual studio? Because if you draw a 16 bit cursor, and load it, it will be a 16 bit cursor.
Yes, thats true.
But when im making a Cursor with Visual Studio, the cursor starts out with a monochrome bitmap, which is used as default, EVEN if i put a 16bits bitmap on it too.
Changing to 16 bits bitmap.
You can go to \res directory and physically delete the cursor and copy the 16bit colored cursor (download from web) with same name and try to open one curson in VC++ editor. This should work
Watch bumping old threads we tend to get cranky about that :).