如何在edit中一个一个字符显示字符串

把代码重新分配一下位置就行了。
在类定义里面写
const CString conStr="123456789";
CString strTemp;//绑定到edit上
在OnDraw()里面写
UpdateData(FALSE);
在OnTimer()里面写
//定时器1秒间隔
i++;
i=i%9;
strTemp=conStr.Left(i)
原文地址:https://www.cnblogs.com/dayouluo/p/76828.html