HideCaret function user32

Win32Result<bool> HideCaret(
  1. HWND? hWnd
)

Removes the caret from the screen.

Hiding a caret does not destroy its current shape or invalidate the insertion point.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-hidecaret.

Implementation

Win32Result<bool> HideCaret(HWND? hWnd) {
  final result_ = HideCaret_Wrapper(hWnd ?? nullptr);
  return .new(value: result_.value.i32 != FALSE, error: result_.error);
}