if (has_focus) SetCaretPos(x * font_width, y * font_height);
COMPOSITIONFORM cf; HIMC hIMC;  if (!has_focus) return;  SetCaretPos(x * font_width, y * font_height);   if(osVersion.dwPlatformId == VER_PLATFORM_WIN32s) return;   if(osVersion.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS && osVersion.dwMinorVersion == 0) return;    hIMC = ImmGetContext(hwnd); cf.dwStyle = CFS_POINT; cf.ptCurrentPos.x = x * font_width; cf.ptCurrentPos.y = y * font_height; ImmSetCompositionWindow(hIMC, &cf);  ImmReleaseContext(hwnd, hIMC);
void sys_cursor(int x, int y){    if (has_focus)	SetCaretPos(x * font_width, y * font_height);}