单用this->updateWindow(),this指向的窗口上面以前显示的数据就不能被刷掉,只好通过
this->ShowWindow(SW_HIDE);
this->ShowWindow(SW_SHOWNORMAL);
来去掉之前数据。
出现的问题是,如果用了
this->ShowWindow(SW_HIDE);
this->ShowWindow(SW_SHOWNORMAL);
之后屏幕会很散,效果不是很好,想找到另外一个方案
this->ShowWindow(SW_HIDE);
this->ShowWindow(SW_SHOWNORMAL);
来去掉之前数据。
出现的问题是,如果用了
this->ShowWindow(SW_HIDE);
this->ShowWindow(SW_SHOWNORMAL);
之后屏幕会很散,效果不是很好,想找到另外一个方案
InvalidateRect(&rect);
UpdateWindow();如果觉得麻烦就直接
Invalidate(NULL);
UpdateWindow();