这个跟你设计算法有关可以分根线程单独做,每次有要显示内容时+到m_editstr上显示出来再定义一个控制变量m_editclm_editcl.LineScroll(m_editcl.GetLineCount() - 1);