int iupdrvBaseSetCursorAttrib(Ihandle* ih, const char* value) { /* Cursor can be NULL in Windows. */ HCURSOR hCur = iupwinGetCursor(ih, value); iupAttribSet(ih, "_IUPWIN_HCURSOR", (char*)hCur); /* To be used in WM_SETCURSOR */ /* refresh the cursor */ SendMessage(ih->handle, WM_SETCURSOR, (WPARAM)ih->handle, MAKELPARAM(1,WM_MOUSEMOVE)); return 1; }
int iupdrvBaseSetCursorAttrib(Ihandle* ih, const char* value) { /* Cursor can be NULL in Windows. */ HCURSOR hCur = iupwinGetCursor(ih, value); iupAttribSet(ih, "_IUPWIN_HCURSOR", (char*)hCur); /* To be used in WM_SETCURSOR */ /* refresh the cursor */ iupwinRefreshCursor(ih); return 1; }