I set my own cursor by:
HCURSOR hCurStandard = LoadCursorFromFile(TEXT("cursor.cur"));
SetSystemCursor(hCurStandard, 32512);
DestroyCursor(hCurStandard);
How to go back and set default cursor?
This doesnt work:
SetSystemCursor(LoadCursor(0, IDC_ARROW), 32512);
----EDIT-----
HCURSOR hcursor = LoadCursor(0, IDC_ARROW);
HCURSOR hcursor_copy = CopyCursor(hcursor);
BOOL ret = SetSystemCursor(hcursor_copy, OCR_NORMAL);
DestroyCursor(hcursor);
This works for all cursors except IDC_ARROW, what the...?
SetSystemCursor
? If it's 0, callGetLastError
to see what the error is. – UnpackLoadCursor
for calls toSetSystemCursor
See here: msdn.microsoft.com/en-us/library/windows/desktop/… So the answer below is probably what you need to do. – Unpack