I'm trying to randomize 4 words and then put 3 of them into a editbox.
My code looks like this:
Code:
char c[4][10] = {"Hello","Hi","Good Day","Whatever"};

void CTestingDlg::OnOK() 
{
srand((unsigned)time(NULL));
for (int i=0;i<3;i++) {
SetDlgItemText(IDC_EDIT1, c[rand() % 4]);
}
Now the problem is that the editbox just puts out one line, not 3 as I want.
I have tried to set "Multiline" and "Want return" but that doesn't work either.

Can someone please help?