- //private void DrawListViewItemStateIcon(DrawListViewSubItemEventArgs e, RectangleF rct)
- //{
- // ImageListViewItem item = (ImageListViewItem)e.Item;
- // if (item.StateImageIndex > -1)
- // {
- // ////e.Bounds.Leftが常に0を指すから自前で計算
- // //Rectangle itemRect = item.Bounds;
- // //itemRect.Width = e.Item.ListView.Columns[4].Width;
-
- // //foreach (ColumnHeader clm in e.Item.ListView.Columns)
- // //{
- // // if (clm.DisplayIndex < e.Item.ListView.Columns[4].DisplayIndex)
- // // {
- // // itemRect.X += clm.Width;
- // // }
- // //}
-
- // //Rectangle iconRect = Rectangle.Intersect(new Rectangle(e.Item.GetBounds(ItemBoundsPortion.Icon).Location, new Size(_iconSz, _iconSz)), itemRect);
- // //iconRect.Offset(0, Math.Max(0, (itemRect.Height - _iconSz) / 2));
-
- // if (rct.Width > 0)
- // {
- // RectangleF stateRect = RectangleF.Intersect(rct, new RectangleF(rct.Location, new Size(18, 16)));
- // //e.Graphics.FillRectangle(Brushes.White, rct);
- // //e.Graphics.InterpolationMode = Drawing2D.InterpolationMode.High;
- // e.Graphics.DrawImage(this.PostStateImageList.Images(item.StateImageIndex), stateRect);
- // }
- // }
- //}
-