Tech Support > Microsoft Windows > Development Resources > Flickering on resize with FillRect
Flickering on resize with FillRect
Posted by JD Steffen on April 19th, 2004


Hello,

Okay, this is a newbie question. I get some nasty flickering in my
window when I use the FillRect method to change the background color
of my window. Any ideas about how I might fix this? The flickering is
actually large white bars that scroll across the window. It only
happens when I resize or move the window, by the way.

Thanks

Posted by Allan Bruce on April 19th, 2004



"JD Steffen" <jjasteffen@cableone.net> wrote in message
news:461bbbac.0404181649.6d6a96a7@posting.google.c om...
Where are you using FillRect? If it is erasing the background, then you
should handle it in WM_ERASEBACKGND and returning a non-zero value to
indicate that the message has been handled. Also, you should set the style
part of the wc/wcex structure to either 0, or CS_OWNDC.
Allan




Similar Posts