01-25-2012, 08:05 PM
this should work
int hwnd=CreateWindowEx(0 "RichEdit20W" 0 0 ...) ;;create rich edit control
str file=... ;;temp file
rtf.setfile(file)
RichEditLoad(hwnd file) ;;load rtf into the control
text.getwintext(hwnd) ;;get text from the control
DestroyWindow hwnd
int hwnd=CreateWindowEx(0 "RichEdit20W" 0 0 ...) ;;create rich edit control
str file=... ;;temp file
rtf.setfile(file)
RichEditLoad(hwnd file) ;;load rtf into the control
text.getwintext(hwnd) ;;get text from the control
DestroyWindow hwnd