Hi Alison,
I have added timer to update Edit box. The following code i have in the timer function.
void CSerialCommView::OnTimer(UINT_PTR nIDEvent)
{
CMainFrame *pFrame = (CMainFrame*)AfxGetMainWnd();
CEdit* DispBox=(CEdit*)pFrame->m_wndDlgBar.GetDlgItem(IDC_DISPLAY_BOX);
dispstr+=mydatastr+_T("\n");
DispBox->SetWindowTextW(dispstr);
DispBox->LineScroll(DispBox->GetLineCount());
Invalidate(true);
CView::OnTimer(nIDEvent);
}
The problem is,the dialog flickers because of
Invalidate(true)
.
Is there any other method which will just update without flickering problem. :omg:
Thanks.