Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserting RTF code to show up as RTF formatted text in RichEdit Field
#8
Macro Macro3028
Code:
Copy      Help
str rtf = "{\rtf1 \ansi \deff0 {\fonttbl {\f0 Monotype Corsiva;}} \qc \f0 \fs120 \i \b Hello,\line World!}"
int w=win("Document - WordPad" "WordPadClass")
int c=  id(59648 w) ;;editable text 'Rich Text Window'

__ProcessMemory m.Alloc(c rtf.len+100)

SETTEXTEX t
m.Write(&t sizeof(t))
m.WriteStr(rtf sizeof(t))
byte* p=m.address
SendMessageW(c EM_SETTEXTEX p p+sizeof(t))


Messages In This Thread
RE: Inserting RTF code to show up as RTF formatted text in RichEdit Field - by Gintaras - 04-03-2018, 03:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)