CString str; m_edit1.GetWindowText(str); m_edit2.SetWindowText(str); str=""; m_edit1.SetWindowText(str);