That's a simple concatenation thing. Retrieve from the text box what's in it and put it in a string variable or buffer. Append whatever you want to that. Write it back to the textbox. Personally, I'd use Get/SetWindowText().
P.S. Or it might make sense to keep track of the sum using a variable and only ever set? (Actually, this might be the only way to do things, if you want [C] and [CE] to work?)