Edit Control controls, by default, press Enter calls OnOK () closes the form. You can work around this bug, category view, click CMFCApplication3Dlg, below the rewrite OnOK (), comment out the code to them.
Properties Multiline Edit Control controls consistent with Want Return to TRUE or FALSE
Str CString; m_edit.GetWindowTextW (str); // interface controls, the right mouse button, add a variable, m_Edit m_edit2.SetWindowTextW (str);
exit ( 0 ); // CDialog :: OnCancel (); // CDialog NOK ();
[Reference] https://www.bilibili.com/video/av52921336?p=13