如何让CEditView中文字不闪烁?
SDI窗口
View派生于CEditView
OnPaint 里程序如下:
void CExEditViewView::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
CEdit& theEdit = GetEditCtrl();
int length=theEdit.GetWindowTextLength();
theEdit.SetSel(0,length);
theEdit.ReplaceSel(Data);
// Do not call CEditView::OnPaint() for painting messages
}
但是出现闪烁?
如何才能显示文字,在窗口移动或被别的窗口挡住再次出现后,文字不消失。