displaying text and numbers in an edit control

This is a discussion on displaying text and numbers in an edit control within the Windows Programming forums, part of the Platform Specific Boards category; Hi folks
I'm still learning so this is probably a dumb question.
I know how to use SetDlgItemText() and SetDlgItemInt() ...

displaying text and numbers in an edit control

I know how to use SetDlgItemText() and SetDlgItemInt() to display information in an edit control.....

but what I want to do is append information to that already there - for instance I have an array of integers and I want to display them in a formatted manner (with comma's, spaces. tabs etc)

Which API functions do I need to use to do this? Is there an easy way of finding out which function you need to do a job when you really don't know exactly what you're looking for (to save me asking you lot all the time)

If you want an API function there's wsprintf or you could just use sprintf to format a string prior to displaying it in your edit control.

To append information in a single line edit control it's probably simpler to just produce the final, formatted string and send that to the edit control with one of the api functions you've mentioned. For multi-line edit controls it may be better to use EM_REPLACESEL (set the selection to the end of the edit control's contents with EM_SETSEL).