Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setwintext append
#4
I am late but following may be useful in future.

With Edit and RichEdit controls you can use EM_ messages.
This appends text

Code:
Copy      Help
str s="text"

int h=id(5001 "+PowerProNote")

s+"[]"
SendMessage(h EM_SETSEL -2 -2)
SendMessage(h EM_REPLACESEL 0 s)

This gets line

Code:
Copy      Help
int lineindex=0
int h=id(5001 "+PowerProNote")

str s.all(300)
word* w=s; w[0]=300
s.fix(SendMessage(h EM_GETLINE lineindex s))
out s


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)