SetCaretPos function user32
Moves the caret to the specified coordinates.
If the window that owns the caret was created with the CS_OWNDC class style, then the specified coordinates are subject to the mapping mode of the device context associated with that window.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-setcaretpos.
Implementation
Win32Result<bool> SetCaretPos(int x, int y) {
final result_ = SetCaretPos_Wrapper(x, y);
return .new(value: result_.value.i32 != FALSE, error: result_.error);
}