c++ repaint window

南楼画角 提交于 2019-12-11 03:28:33

问题


i got a window with an image in it. but when its a little picture i first need to resize the window before i can see it, the screen doesnt refresh/repaint. how can i fix this?


回答1:


You can force a window to refresh by calling RedrawWindow




回答2:


to repaint you should use the InvalidateRect(). it will send message to WM_REPAINT to force it repaint




回答3:


This very much depends on what technology/tools you are using. On Windows, this is done by processing WM_PAINT message, or better, by using a 3rd-party control that does it for you.



来源:https://stackoverflow.com/questions/3004647/c-repaint-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!