limin_chen:
RichEdit.Perform(WM_SETREDRAW,Intger(False),0);
RichEdit.SetStart:=Length(RichEdit.Lines.Text);
RichEdit.SelLength:=0;
RichEdit.SelText:='..............'#13;
RichEdit.SelText:='..............'#13;
{....}
RichEdit.PerForm(EM_ScrollCaret,0,0);
RichEdit.Perform(WM_SETREDRAW,Integer(True),0);
RichEdit.Invalidate;
用此方法可以是显示速度提高8-10倍(添加1000行),如果添假行数越多,效果
越明显!
RichEdit.Perform(WM_SETREDRAW,Integer(True),0) //当RichEdit 变化时,显示将更新!
RichEdit.Perform(WM_SETREDRAW,Integer(False),0) //当RichEdit 变化时,显示将不更新!