yashu
yashu

Reputation: 27

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

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.

Upvotes: 0

Views: 297

Answers (1)

Stefan
Stefan

Reputation: 3869

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?

Upvotes: 1

Related Questions