1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<title>Windows Interface Reference: Caret structure</title> 6</head> 7 8<body> 9 10<h1>Caret</h1> 11 12<p>The Caret structure contains functions to create and manipulate the caret. The 13caret is typically used in edit controls to mark the point where new characters will be 14inserted. Usually it is a vertical bar which blinks on and off.</p> 15 16<pre>structure Caret : 17 sig 18 type HWND and HBITMAP 19 type POINT = { x: int, y: int } 20 datatype 21 caretShape = 22 CaretBitmap of HBITMAP 23 | CaretBlack of {width: int, height: int} 24 | CaretGrey of {width: int, height: int} 25 val CreateCaret : HWND * caretShape -> unit 26 val DestroyCaret : unit -> unit 27 val GetCaretBlinkTime : unit -> Time.time 28 val GetCaretPos : unit -> POINT 29 val HideCaret : HWND -> unit 30 val SetCaretBlinkTime : Time.time -> unit 31 val SetCaretPos : POINT -> unit 32 val ShowCaret : HWND -> bool 33 end</pre> 34</body> 35</html> 36