I did not completely understood your question.But upto my understanding you are doing this.
ON_EN_CHANGE(IDC_EDIT1, &CTestCEdit1Dlg::OnEnChangeEdit1)
ON_EN_CHANGE(IDC_EDIT2, &CTestCEdit1Dlg::OnEnChangeEdit2)
in OnEnChangeEdit1 you are changing the text of EDIT2 and in OnEnChangeEdit2 you are changing the text of EDIT1.if it is then,
Declare a Bool variable m_bool and initialise it to true in dialog constructor.after
void CTestCEdit1Dlg::OnEnChangeEdit1()
{
if(m_bool == TRUE)
{
m_bool = FALSE;
m_Edit2.SetWindowTextW(_T("Hi2"));
}
else
{
m_bool = TRUE;
}
}
and
void CTestCEdit1Dlg::OnEnChangeEdit2()
{
if(m_bool == TRUE)
{
m_bool = FALSE;
m_Edit1.SetWindowTextW(_T("Hi1"));
}
else
{
m_bool = TRUE;
}
}
}