@Avi
Let me clear few things to give you a better idea. Run() is the function on which all other functions are depending. In one cycle of 100 iterations, a text is shown by Run() and is checked by Check() and compared with user input by IsCorrect(s) and all this is happening within OnBtClicked() till 100 iterations are completed.
Within IsCorrect() I have strcmpare(CString, CString) function that takes both strings and returns a float value depeneding on which the input is either marked corect or incorrect.
What I want is:
to disable the Cbutton when user interface is loaded before the start of 1st iteration and enable it when there is some text in edit contrl.
In message map, I have the entry
ON_BN_CLICKED(IDC_IT_START, &CIT::OnBnClickedStart)
// loads the ui
ON_EN_UPDATE(C_IT_ANS, &CIT::OnEnUpdateBt())
and I want to use this edit contrl for enabl/disble Cbutton.
void CIT::OnEnUpdateBt()
{
if(str!="")
{
m_record.EnableWindow(TRUE);
}
}
But this control doesn't get activated the way as is desired.