The Best Control to Print Log Into My Dialog in MFC
Contents
I am building my application using MFC Dialog application framework. I have printed logs in my output window by using TRACE. Now I want to print my logs on my Dialog, for example, in an Edit box or list box.
If we can transport the logs printed by TRACE into this control on my Dialog, it will be wonderful!
The list box is best for this. Make sure you turn off its ‘Sort’ property so the strings will be displayed in the order you add them. Call the list box AddString to add each line.
Author Watterry
LastMod 2013-09-07