CStatic 控件设置文本,不能重回问题

    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);

  

posted @ 2019-07-11 17:13  曦花  阅读(417)  评论(0)    收藏  举报