How do I output multiple lines to an Edit Box?
I try this:
wsprintf( string, "Line 1 \n Line 2 \n Line 3 \n ", SectionType );
SetDlgItemText(hWnd,IDC_OUTPUT,string);
How do I output multiple lines to an Edit Box?
I try this:
wsprintf( string, "Line 1 \n Line 2 \n Line 3 \n ", SectionType );
SetDlgItemText(hWnd,IDC_OUTPUT,string);
It looks like you'll want to add ES_MULTILINE to your code when you make the actual box. You may want ES_WANTRETURN as well, since it allows you to use the enter key.
You will need the ES_MULTILINE style specified, then instead of simply "\n", specify "\r\n" in your string.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
It works!
Thanks