i've a listview contains, 500 rows, depending on my condition i change some rows differnent color, it works fine, but the prob here is, painting is not properly working when i scroll things, if i execute lv.referesh then it shows fine
so i want to hook this scroll bar into a event, whenever i chage scroll bar, i will execute this lv.refresh
any help pls
ganesh
Make a listview descendent and handle the WM_VSCROLL message. Something like
// in TMylistview declaration
private
Procedure WMVScroll( Var msg: TWMVScroll ); Message WM_VSCROLL;
Procedure TMyListview.WMVScroll( Var msg: TWMVScroll );
Begin
inherited;
If msg.scrollcode = SB_ENDSCROLL Then
Invalidate;
End;
Peter Below (TeamB) 10011...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
Note: I'm unable to visit the newsgroups every day at the moment,
so be patient if you don't get a reply immediately.