1068
Appendix A: System Routines — Text Editing
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
TE_pasteText
(continued)
Example:
size_t size;
UCHAR *pText;
HANDLE hText;
.
.
.
if (CB_fetchTEXT(&hText, &size)) /* get handle to clipboard text */
{
pText = HLock(hText); /* lock handle and convert to pointer */
TE_pasteText(&textEdit, pText, size); /* paste text into edit buffer */
HeapUnlock(hText); /* unlock clipboard handle */
}