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.&nbsp; The
13caret is typically used in edit controls to mark the point where new characters will be
14inserted.&nbsp; 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 -&gt; unit
26    val DestroyCaret : unit -&gt; unit
27    val GetCaretBlinkTime : unit -&gt; Time.time
28    val GetCaretPos : unit -&gt; POINT
29    val HideCaret : HWND -&gt; unit
30    val SetCaretBlinkTime : Time.time -&gt; unit
31    val SetCaretPos : POINT -&gt; unit
32    val ShowCaret : HWND -&gt; bool
33  end</pre>
34</body>
35</html>
36