Here is my code.

void CTestDlg::OnOK()
{
CString szEdit;
m_editTest.GetWindowText(szEdit);
AfxMessageBox(szEdit);
// TODO: Add extra validation here

CDialog::OnOK();
}

Can someone please tell me how to make this output go to a new window or to the window I already have open instead of a AfxMessageBox.

Thanks