L
larry
In my program I tried to update a edit control's text very fast, but It
seems there's no time to update it.
Following is my code. IDC_EDIT1 is a edit control;
//***************************
CString strTest;
for(int i=0;i<10;i++)
{
strTest.Format("%d",i);
CWnd* pwnd=GetDlgItem(IDC_EDIT1);
pwnd->SetWindowText(strTest);
Sleep(200);
}
//*******************************
I tried to add pwnd->Invalidate(TRUE); before Sleep(200); but it doesn't
work. Would you like to help me? I really appreicate your time and
help.
Regards,
Larry
Larry
seems there's no time to update it.
Following is my code. IDC_EDIT1 is a edit control;
//***************************
CString strTest;
for(int i=0;i<10;i++)
{
strTest.Format("%d",i);
CWnd* pwnd=GetDlgItem(IDC_EDIT1);
pwnd->SetWindowText(strTest);
Sleep(200);
}
//*******************************
I tried to add pwnd->Invalidate(TRUE); before Sleep(200); but it doesn't
work. Would you like to help me? I really appreicate your time and
help.
Regards,
Larry
Larry