How do I get the functionality of printf to an EditControl in MFC

285 views Asked by At

I am developing an MFC application. The UI will contain a Listbox with multiple options. Each selection in the list box has a respective function to be executed. I have written event handlers for doubleclick of the listbox selections.

There are few scenarios in each function where in I may have to display a few messages and a few values (just like how we do with printf).

I would like to know how to achieve this with EditControl. I want these messages to appear in the EditControl.

1

There are 1 answers

5
Stefan On

I might have missed the point here but can you not use a CString and the Format function to setup the string before displaying it?