Two lines in edit box
-
I am trying to display two lines in an edit box. The edit box is checked for multi-line. The code displays the following just fine: one two three four five six I want it to display: one two three four five six How do I do it? Here's the code I'm using:
RawString.Format("%s %s %s %s %s %s", F1, F2, F3, F4, F5, F6);
GetDlgItem(IDC_EDIT_RawBidAsk)->SetWindowText(RawString);
Thanks -
I am trying to display two lines in an edit box. The edit box is checked for multi-line. The code displays the following just fine: one two three four five six I want it to display: one two three four five six How do I do it? Here's the code I'm using:
RawString.Format("%s %s %s %s %s %s", F1, F2, F3, F4, F5, F6);
GetDlgItem(IDC_EDIT_RawBidAsk)->SetWindowText(RawString);
ThanksPut
\r\n
in the string to create a line break--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?
-
I am trying to display two lines in an edit box. The edit box is checked for multi-line. The code displays the following just fine: one two three four five six I want it to display: one two three four five six How do I do it? Here's the code I'm using:
RawString.Format("%s %s %s %s %s %s", F1, F2, F3, F4, F5, F6);
GetDlgItem(IDC_EDIT_RawBidAsk)->SetWindowText(RawString);
Thanks