i want to set text in an editbox but every time i set the text it overwites the text that is currently in it. whats the best way to add more text to the editbox without overwriting the current text?
Posted on 2002-01-21 00:09:35 by smurf
Not sure about the best way but one way is to use messages EM_SETSEL to set the selection to the end and then use EM_REPLACESEL to add text.
Posted on 2002-01-21 00:21:08 by Soul~Drudge
that will work great thanks.:alright:

EDIT: well after doing some testing i figured out that the only message i need to send is the EM_REPLACESEL message along with my text. the msdn says "If there is no current selection, the replacement text is inserted at the current location of the caret". and sure enough when you set text in an edit box the caret is automatically placed on a new line.:rolleyes:
Posted on 2002-01-21 00:30:02 by smurf