1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Windows Interface Reference: Clipboard structure</title>
</head>
<body>
<h1>Clipboard</h1>
<p>The clipboard is used as a way of copying data within an application or between
applications.</p>
<pre>structure Clipboard :
sig
datatype <a href="#ClipboardFormat">ClipboardFormat</a> =
CF_NONE | CF_TEXT | CF_BITMAP | CF_METAFILEPICT | CF_SYLK | CF_DIF | CF_TIFF |
CF_OEMTEXT | CF_DIB | CF_PALETTE | CF_PENDATA | CF_RIFF | CF_WAVE | CF_UNICODETEXT |
CF_ENHMETAFILE | CF_OWNERDISPLAY | CF_DSPTEXT | CF_DSPBITMAP | CF_DSPMETAFILEPICT |
CF_DSPENHMETAFILE | CF_PRIVATE of int | CF_GDIOBJ of int | CF_REGISTERED of int |
CF_HDROP | CF_LOCALE
type HBITMAP and HPALETTE and HWND and HDROP
datatype <a
href="#CLIPHANDLE">CLIPHANDLE</a> =
CH_NONE |
CH_TEXT of string |
CH_BITMAP of HBITMAP |
CH_METAFILEPICT of Metafile.METAFILEPICT |
CH_SYLK of Word8Vector.vector |
CH_DIF of Word8Vector.vector |
CH_TIFF of Word8Vector.vector |
CH_OEMTEXT of string |
<a
name="CH_DIB">CH_DIB</a> of Word8Vector.vector |
CH_PALETTE of HPALETTE |
CH_PENDATA of Word8Vector.vector |
CH_RIFF of Word8Vector.vector |
CH_WAVE of Word8Vector.vector |
CH_UNICODETEXT of Word8Vector.vector |
CH_ENHMETAFILE of Metafile.HENHMETAFILE |
CH_OWNERDISPLAY of Word8Vector.vector |
CH_DSPTEXT of Word8Vector.vector |
CH_DSPBITMAP of Word8Vector.vector |
CH_DSPMETAFILEPICT of Word8Vector.vector |
CH_DSPENHMETAFILE of Word8Vector.vector |
CH_PRIVATE of int * Word8Vector.vector |
CH_GDIOBJ of int * Word8Vector.vector |
CH_REGISTERED of int * Word8Vector.vector |
CH_HDROP of HDROP |
CH_LOCALE of Word8Vector.vector
val ChangeClipboardChain : HWND * HWND -> bool
val CloseClipboard : unit -> unit
val CountClipboardFormats : unit -> int
val EmptyClipboard : unit -> unit
val EnumClipboardFormats : ClipboardFormat -> ClipboardFormat
val GetClipboardData : ClipboardFormat -> CLIPHANDLE
val GetClipboardFormatName : ClipboardFormat -> string
val GetClipboardOwner : unit -> HWND
val GetClipboardViewer : unit -> HWND
val GetOpenClipboardWindow : unit -> HWND
val GetPriorityClipboardFormat : ClipboardFormat list -> ClipboardFormat option
val IsClipboardFormatAvailable : ClipboardFormat -> bool
val OpenClipboard : HWND option -> unit
val RegisterClipboardFormat : string -> ClipboardFormat
val SetClipboardData : CLIPHANDLE -> unit
val SetClipboardViewer : HWND -> HWND
end</pre>
<p><tt>datatype <a name="ClipboardFormat">ClipboardFormat</a></tt><br>
represents the various kinds of information which can be stored on the clipboard. As
well as the formats defined in Windows the ML interface defines four extra formats.
CF_NONE is used when no format is specified. CF_PRIVATE, CF_GDIOBJ and
CF_REGISTERED are used for clipboard formats in the private range, GDI object range and
registered format range. </p>
<p><tt>datatype <a name="CLIPHANDLE">CLIPHANDLE</a></tt><br>
is used when extracting information from the clipboard or setting the clipboard contents.</p>
<p> </p>
</body>
</html>
|