Attached source and header files for a function that retrive paltalk text in RTF format.
Prameter is the handle to the rich text control, return value C string that is allocated with LocalAlloc ang should be freed with LocalFree.
It can replace the WM_SETSEL, and WM_CUT messages in the code here and a WM_SETTEXT sould replace the WM_PASTE.
The function does not change the clipboard and therefore preffered over the cut/paste commangs.
If anyone interested in tryin to use it with VB, without going through the hassle of translating it to VB, I can post a static library, though I have no clue if VB can link to native code library.