Clipboard.h
. It covers:
ClipboardFormatType
enum specifies the type of data to add to the clipboard or retrieve from the clipboard.
enum clipboardFormats {
    clipboardText,
    clipboardInk,
    clipboardBitmap };
typedef enum clipboardFormats
    ClipboardFormatType;
clipboardText
| Textual data. This is the most commonly used clipboard. |
clipboardInk
| Reserved. |
clipboardBitmap
| Bitmap data. |
clipboardText
item from the clipboard, you will receive the string you added before the bitmap; the bitmap does not overwrite textual data and vice versa.
void ClipboardAddItem (const ClipboardFormatType format, const void *ptr, UInt16 length)
  |
-> |
Text, ink, bitmap, etc. See ClipboardFormatType . |
  |
-> |
Pointer to the item to place on the clipboard. |
  |
-> |
Size in bytes of the item to place on the clipboard. |
FldCut
,
FldCopy
Err ClipboardAppendItem (const ClipboardFormatType format, const void *ptr, UInt16 length)
  |
-> |
Text, ink, bitmap, etc. See ClipboardFormatType . This function is intended to be used only for the clipboardText format. |
  |
-> |
Pointer to the data to append to the item on the clipboard. |
  |
-> |
Size in bytes of the data to append to the clipboard. |
memErrNotEnoughSpace
if there is not enough space to append the data to the clipboard.
ClipboardAddItem
in that it does not overwrite data already on the clipboard. It allows you to create a large text item on the clipboard from several small disjointed pieces. When other applications retrieve the text from the clipboard, it's retrieved as a single unit.
MemHandle ClipboardGetItem (const ClipboardFormatType format, UInt16 *length)
  |
-> |
Text, ink, bitmap, etc. See ClipboardFormatType . |
  |
<- |
The length in bytes of the clipboard item is returned here. |
FldSetTextHandle
). Consider this to be read-only access to the chunk. Copy the contents of the clipboard to your application's own storage as soon as possible and use that reference instead of the handle returned by this function.
NULL
terminator. You must use the length
parameter to determine the length in bytes of the string you've retrieved.
  |   |