Listbox, overriding DrawItem causes flickering when painting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TN

    Listbox, overriding DrawItem causes flickering when painting

    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
  • raylopez99

    #2
    Re: Listbox, overriding DrawItem causes flickering when painting

    On Sep 20, 12:54 am, TN <gin...@yahoo.c omwrote:
    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

    Comment

    Working...