Would anyone know why I'm getting phantom horizontal gridlines in a listview (shown below) when scrolling using the scroll bar? It will clean up when it needs to, such as after a minimize/restore.
I didn't have exactly the same, but if you're using custom draw on the listview try turning off Windows XP Themes support prior to compiling.
That fixed it. Thanks. I wasn't using any custom draw, however.
Now I'm wondering if there may be another solution besides disabling theme support. When I copied the exe with theme support enabled from the XP machine to my new Win 7 box, it ran fine (no phantom lines in the listview). The version without theme support also ran fine, but didn't look as good.
So is it a choice between appearance or functionality?
I have had all kind of problems using listviews with themes. The only solution that worked in my computer, besides disabling themes, was not to use grid lines.
Yeah, I think it is a combination of grid lines and how scrolling is setup (Smooth Scroll, etc). Could even be Font Size/Type and height of control being an increment of the line height or not, etc. I have the same issue every now and then and end up playing with it and finally get it to look better. I usually turn off the V and H Redraw styles in the Form Class Styles...could try flipping those and various Clip styles to see which one draws best too. Usually when it draws weird like that it is when I scroll fast in the control too and not so much if I scroll slow.