c++ repaint window
13,628
Solution 1
You can force a window to refresh by calling RedrawWindow
Solution 2
to repaint you should use the InvalidateRect(). it will send message to WM_REPAINT to force it repaint
Solution 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.
Author by
stefan
Updated on June 04, 2022Comments
-
stefan almost 2 years
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?