控制listview大图标之间的间距

http://hi.baidu.com/wl5026442/blog/item/8d62213c535b7c0cbba1675f.html

VS2003, c#
listView 中,大图标时,各个图标之间间距的控制:

[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);

其中 140控制行距,130控制列距

原文地址:https://www.cnblogs.com/jetz/p/1818557.html