Listbox, overriding DrawItem causes flickering when painting

T

TN

I forget how to fix this.. But whenever I draw to the ListBox with
DrawItem, it flickers. Double Buffering etc. do not work.

I remember fixing this once and I had to use some Windows API function.
I don't remember how I fixed it though, so does anyone know a possible
solution to this? thanks
 
R

raylopez99

I forget how to fix this..  But whenever I draw to the ListBox with
DrawItem, it flickers.  Double Buffering etc. do not work.

I remember fixing this once and I had to use some Windows API function.
  I don't remember how I fixed it though, so does anyone know a possible
solution to this? thanks

"Double Buffering etc. do not work." - rethink this--are you sure? I
recall I had the same problem in Forms 2.0, and by checking the double
buffering checkbox under the Designer Wizard, the problem was
'cured' (or rather, pushed to the background and the hardware takes
care of it--to really cure it you have to do stuff like see exactly
which areas of your screen really need Invalidate to be called, which
is a ton of work--better to simply offload the problem to your end
users and force them to buy faster hardware, which in a cynical but
accurate way is a good solution to the problem).

RL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top