I've created a custom list draw procedure using LVS_OWNERDRAWFIXED. Problem
is, List views don't send the WM_CTLCOLORLISTBOX or similar (or at least I
couldn't find any), resulting in the OS erasing the list every time before I
update it in my custom draw procedure. The result is a nasty, annoying
flicker. WM_ERASEBKGND doesn't seem to matter here either.

Anyone have experience with making flicker free list views, I'd be most
grateful for advice.

I'm using API, not MFC.

Re: LVS_OWNERDRAWFIXED - List view flickers! by Ilya

Ilya
Thu Dec 02 23:57:16 CST 2004

Yes you can subclass list view, handle WM_ERASEBKGND message, and return 1.
In this case system will not crear background of control.

"Chris Oz" <Chris Oz@discussions.microsoft.com> wrote in message
news:41336F87-6BEF-4458-ADA3-06C94018902C@microsoft.com...
> I've created a custom list draw procedure using LVS_OWNERDRAWFIXED.
Problem
> is, List views don't send the WM_CTLCOLORLISTBOX or similar (or at least I
> couldn't find any), resulting in the OS erasing the list every time before
I
> update it in my custom draw procedure. The result is a nasty, annoying
> flicker. WM_ERASEBKGND doesn't seem to matter here either.
>
> Anyone have experience with making flicker free list views, I'd be most
> grateful for advice.
>
> I'm using API, not MFC.



Re: LVS_OWNERDRAWFIXED - List view flickers! by ChrisOz

ChrisOz
Fri Dec 03 04:11:06 CST 2004

Is it possible to do this without subclassing in MFC? Is there a similar
approach in API? I guess what I want to achieve is simply having my List View
handle its own messages.

"Ilya Manin" wrote:

> Yes you can subclass list view, handle WM_ERASEBKGND message, and return 1.
> In this case system will not crear background of control.
>
> "Chris Oz" <Chris Oz@discussions.microsoft.com> wrote in message
> news:41336F87-6BEF-4458-ADA3-06C94018902C@microsoft.com...
> > I've created a custom list draw procedure using LVS_OWNERDRAWFIXED.
> Problem
> > is, List views don't send the WM_CTLCOLORLISTBOX or similar (or at least I
> > couldn't find any), resulting in the OS erasing the list every time before
> I
> > update it in my custom draw procedure. The result is a nasty, annoying
> > flicker. WM_ERASEBKGND doesn't seem to matter here either.
> >
> > Anyone have experience with making flicker free list views, I'd be most
> > grateful for advice.
> >
> > I'm using API, not MFC.
>
>
>