Hey all,
suppose I want to have a list box item redrawn. What do you think is the best way to do this?

What I'm thinking:



SendMessage,hListBoxWindow,LB_GETITEMRECT,itemid,addr rect
InvalidateRect,hListBoxWnd,addr rect,TRUE


I may have to redraw many elements of a list so I just want a nice clean way of doing this.

Thanks,

--Chorus
Posted on 2002-08-09 18:55:41 by chorus
I use this:



invoke SetWindowPos, hCtl, 0, 0, 0, 0, 0, ; redraw window
SWP_NOSIZE or SWP_NOMOVE or \
SWP_NOZORDER or SWP_NOACTIVATE or \
SWP_FRAMECHANGED
Posted on 2002-08-09 23:45:13 by bazik
Thanks bazik! Nice trick... didn't even think of it :)

--Chorus
Posted on 2002-08-10 11:24:07 by chorus