Click to See Complete Forum and Search --> : Probably basic flickering problem


ZillionDollarSadist
April 19th, 2005, 04:30 AM
My application works quite ok now, but it flickers and you know it's very annoying. I wrote the window components with vcl (Borland c++ builder 6), all the threads (each quite small but all extremely useful) are plain Win API, and I just have two not-so-complicated windows open. I can't understand then why it's flickering!
In the timer function I have I call the Repaint method from vcl to force redrawing, if it may help.
Thanks!

Boris K K
April 19th, 2005, 10:40 AM
It would be easier if you have provided more detailed information about the content of your window, but you may try handling (return non-zero, do nothing) the WM_ERASEBKGND message.

Bni
April 20th, 2005, 12:38 PM
Boris is right.

The heart of the question concerning flickering is a double pass.
One with WM_ERASEBKGND and one with WM_PAINT.

Try this link for more info

http://www.catch22.net/tuts/flicker.asp


Good luck