Depending how you are using the edit controls e.g.
1. The controls are associated with tow CEdit objects:
CEdit m_edText2;
CEdit m_edText1;
then on your handler
void CMyView::OnButtonClear1()
{
m_edText1.SetWindowText(""

;
m_edText2.SetWindowText(""

;
}
Note that the DoDataExchage () should contains:
DDX_Control(pDX, IDC_EDIT1, m_edText1);
DDX_Control(pDX, IDC_EDIT2, m_edText2);
2. The edit box controls are associated with tow CString variables:
CString m_sLastName;
CString m_sFirstName;
Then the handler of the button when you want to reset should be :
void CEx10View::OnButtonClear2()
{
m_sLastName.Empty();
m_sFirstName.Empty();
UpdateData(false);
}
and the DoDataExchange() should include :
DDX_Text(pDX, IDC_EDIT1, m_sLastName);
DDX_Text(pDX, IDC_EDIT2, m_sFirstName);
-obislavu-