Tech Support > Microsoft Windows > Development Resources > Re: User draw listbox update anomaly
Re: User draw listbox update anomaly
Posted by Sten Westerback on July 2nd, 2003


Don't send a WM_PAINT, the system sends that automatically
when it is needed and appropriate. At most you might sometimes
update your listbox by using InvalidateRect(hwndListbox, NULL, TRUE)
but that should be needed only if you subclass your listbox but not
when you get WM_DRAWITEM as that's sent when the item should
be drawn. It seems to me like the scroll causes the first invalidation.

- Sten

"chris" <bitinit@hushmail.com> wrote in message
news:14571aaf.0307011126.7d261ea1@posting.google.c om...



Similar Posts