views:

136

answers:

3

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?

A: 

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.

Pavel Radzivilovsky
+1  A: 

You can force a window to refresh by calling RedrawWindow

Anthony Williams
A: 

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

Ramiz Toma