TerGetRtfSel
Retrieve the selected text in the RTF format.
HANDLE TerGetRtfSel(hWnd, size)
HWND hWnd; | The handle of the window to be accessed |
long far *size; | The size of the output global buffer |
Return Value: This function returns the global handle to the buffer containing the selected text in the RTF format. The size of the global buffer is returned using the second argument. Lock (GlobalLock) the returned handle to access the RTF text. Your application owns this memory handle. When the data is no longer required, use the GlobalFree function to free the global handle.
A NULL value of the handle indicates an error.