I have two cursor resources. The first one [IDC_CURSOR1] contains three different image types:
The second one [IDC_CURSOR2] contains only one:
If I'm calling LoadCursor(hInst, IDC_CURSOR1) it always loads 32x32 version and I was unable to find the way to load 48x48 or 64x64 version. In second case it loads 48x48 icon (because there is no other version), but it scales it down to 32x32.
How can I load a cursor with other than 32x32 resolution?
BTW: I tried to change DPI because according to msdn it should automatically load higher resolution cursor in higher dpi, but it doesn't.
Thank you!
Call LoadImage
passing IMAGE_CURSOR
and specifying the desired dimensions.
Cursor = (HCURSOR)LoadImage(hinst, IDC_CURSOR1, IMAGE_CURSOR, 64, 64, LR_DEFAULTCOLOR);