I have a multiline text box that I am trying to write to. However, I cannot get it to write to the next line. All that displays is the last thing that it writes, you can actually see it writing everything by the movement of the scrollbar, but it is all on the same line. This is the relavent code:
if(strcmp(ext, "rul") == 0)
wsprintf(szBuffer, "%s%s", szBuffer, "\r\n");
HWND hwnd = GetDlgItem( hDlg, IDC_LISTVIEW );
SetWindowText( hwnd, szBuffer );
I tried formatting a new line/carriage return to the end of the string that I want to display, but it does not work (actually it nullify's my whole string).
Each time the program enters the if statement I would like to write szBuffer to screen. All help would be greatly appreciated.