listView 中,大图标时,各个图标之间间距的控制
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
[DllImport("user32.dll",CharSet = CharSet.Auto)]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, int lParam);
private int LVM_SETICONSPACING = 0x1035;
//把下面放到相应 form 的 form_Load 或者是 构造函数中,
SendMessage(this.listViewChart.Handle, LVM_SETICONSPACING, 0, 0x10000 * 140 + 130
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, int lParam);
private int LVM_SETICONSPACING = 0x1035;
//把下面放到相应 form 的 form_Load 或者是 构造函数中,
SendMessage(this.listViewChart.Handle, LVM_SETICONSPACING, 0, 0x10000 * 140 + 130