Teen Programmers Unite  


Return to forum top

VC++: SetWindowText

Posted by FrEAkiSh209 [send private reply] at June 03, 2002, 03:13:02 PM

Is there a way to add text to a static text box using SetWindowText, or possibly another function, so that the previous text is not cleared?

Posted by metamorphic [send private reply] at June 03, 2002, 03:27:14 PM

how about using a function to add text to a box but using itself as an R value?

boxtext = boxtext + newboxtext

should give you the old text from the box with the new text.

Posted by CViper [send private reply] at June 03, 2002, 03:45:40 PM

As metamorphic said, you probably want to look at GetWindowText() and strcat() (or whatever you prefer for merging strings)...

You must be logged in to post messages and see which you have already read.

Log on
Save for later automatic logon

Register as a new user
Copyright TPU 2002. See the Credits and About TPU for more information.