在一个环里面用SetWindowText()设置Edit显示文本,结果什么都不出来.
CString str;
int i=0;
while(TRUE)
{
i++;
str.Format("我爱你%d次!",i);
m_editMsg.SetWindowText(str); }
CString str;
int i=0;
while(TRUE)
{
i++;
str.Format("我爱你%d次!",i);
m_editMsg.SetWindowText(str); }
调试欢乐多
{
i++;
str.Format("我爱你%d次!",i);
m_editMsg.SetWindowText(str);
m_editMsg.RerrawWindow(); }
CString str;
int i=0;
while(TRUE)
{
i++;
str.Format("我爱你%d次!",i);
m_editMsg.SetWindowText(str); Sleep(50); }