I have a custom listview using LargeIcon-view and I'm trying to draw
some filled rectangles behind icons. I have overrided OnDrawItem like
this:
protected override void OnDrawItem(DrawListViewItemEventArgs e)
{
Rectangle rc = new Rectangle(e.Item.Position.X - 10,
e.Item.Position.Y, 150, 150);
SolidBrush br = new SolidBrush(e.Item.BackColor);
e.Graphics.FillRectangle(br, rc);
e.DrawDefault = true;
}
Rectangels shows up nicely behind every item but when i scroll my
list, the rectangles gets all messed up and don't draw correctly. I
have doublebuffering set to true.