Here's a quick "heads up" because this problem had me headscratching for quite a while 
When XP's "smooth scrolling" is enabled and you are using a ListView control which has the LVS_EX_GRIDLINES extended style, the gridlines will print over the text and actually get corrupted when the list is scrolled vertically. As far as I know, this only affects Windows XP versions (so only about 70-80% of all computers
)
This is a recognised problem with the control, and the workaround mentioned by Microsoft in http://support.microsoft.com/kb/813791, (which says to use SystemParametersInfo to disable the smooth scrolling) does NOT work according to my tests. I couldn't even get the ListView to repaint properly by subclassing and intercepting the WM_VSCROLL messages, and subclassing is not really preferred option.
So if anyone comes across this, my advice for you is to avoid LVS_EX_GRIDLINES on large lists and use custom draw to color the row backgrounds separately (I use alternating colors for every second item).

When XP's "smooth scrolling" is enabled and you are using a ListView control which has the LVS_EX_GRIDLINES extended style, the gridlines will print over the text and actually get corrupted when the list is scrolled vertically. As far as I know, this only affects Windows XP versions (so only about 70-80% of all computers

This is a recognised problem with the control, and the workaround mentioned by Microsoft in http://support.microsoft.com/kb/813791, (which says to use SystemParametersInfo to disable the smooth scrolling) does NOT work according to my tests. I couldn't even get the ListView to repaint properly by subclassing and intercepting the WM_VSCROLL messages, and subclassing is not really preferred option.
So if anyone comes across this, my advice for you is to avoid LVS_EX_GRIDLINES on large lists and use custom draw to color the row backgrounds separately (I use alternating colors for every second item).
Comment