CStatic m_page_text_;
m_page_text_.SetWindowText(str);
CRect rt;
m_page_text_.GetWindowRect(&rt);
ScreenToClient(&rt);
InvalidateRect(&rt);
UpdateWindow();
可以试试:
CStatic m_page_text_;
CStatic m_page_text_; m_page_text_.UpdateWindow(); m_page_text_.SetWindowText(str);