Hi
was just wondrin if theres any way of adding text to a EditText-box, like the LB_ADDSTRING does to a ListBox (not as SetDlgItemText, which clears the box first)?
did write a small func that gets the text in the box, cats it with the text to be added and sets the result back. But it just didnt feel good :roll:.
Posted on 2004-09-14 05:42:37 by sluggo
As far as I know there is no way in doing this...you need to write an own procedure for that like reading the text to memory, appending additional data and then SetDlgitemText...
Dominik
Posted on 2004-09-14 06:29:58 by Dom
so the answer was simply no.
please dont edit your posts (unless they are the last ones in line) because this might make the subjects untraceable for other users.
Dom
Posted on 2004-09-14 09:08:12 by Dom
ok, sorry bout the edit.
thank you.
Posted on 2004-09-14 09:58:22 by sluggo
You can use SendMessage or SendDlgItemMessage with messages EM_SETSEL and EM_REPLACESEL to append, insert, delete, or replace text.
Posted on 2004-09-14 15:42:41 by tenkey
ah my bad...tenkey is right, you can move selection to the right and then replace the selection -> insert /append some text directly.
Dominik
Posted on 2004-09-15 00:16:01 by Dom