11-11-2014, 04:09 PM
I tried this, but it doesnt work
Macro Macro23
But I think the hwnd isn't properly declared.
(or did I mis something else?)
Macro Macro23
int hwnd=CreateWindowEx(0 "RichEdit20W" 0 0 0 0 0 0 0 0 0 0) ;;create rich edit control
str file_tmp="$desktop$\t.txt" ;;temp file
str file_rtf="$desktop$\b.rtf"
str rtf.getfile(file_rtf)
rtf.setfile(file_tmp)
RichEditLoad(hwnd file_tmp) ;;load rtf into the control
str text.getwintext(hwnd) ;;get text from the control
DestroyWindow hwnd
out textBut I think the hwnd isn't properly declared.
(or did I mis something else?)
