Need a simple "console-style" output window in MFC
-
Hello *.*! I'm just programming a little app with MFC. I wonder if there is a simple control that took my output data but there was only the listbox. It is very sinewy to collect all chars to a single line, delete the \n \l 's an then use the AddString function to put it out. I need to output to a control in a dialog like with printf: printf("bla bla"); printf("blubb blah \n"); <- NOW the new line!! and so on... Did anyone of you have an idea to solve my problem? But I can't use the win32-console-application since I have to use MFC and dialogs! Thanks in advance, Jan
-
Hello *.*! I'm just programming a little app with MFC. I wonder if there is a simple control that took my output data but there was only the listbox. It is very sinewy to collect all chars to a single line, delete the \n \l 's an then use the AddString function to put it out. I need to output to a control in a dialog like with printf: printf("bla bla"); printf("blubb blah \n"); <- NOW the new line!! and so on... Did anyone of you have an idea to solve my problem? But I can't use the win32-console-application since I have to use MFC and dialogs! Thanks in advance, Jan
A textbox could do the trick, by doing something like
txtBox->SetWindowText(txtBox->GetWindowText() + CString(_T("Some text")))
LPCTSTR Dutch = TEXT("Double Dutch :-)");