void CEMailDlg::OnValidate() { // TODO: Add your control notification handler code here CString m_sFrom; for(int a=0;a < m_sFrom.GetLength(); a++) { if(m_sFrom.GetAt(a) == '@') { AfxMessageBox("valid"); } else { AfxMessageBox("invalid"); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)