public static void ListView_SetView(IntPtr hwndLV, LV_VIEW iView) { Windows.SendMessage(hwndLV, 0x108e, (IntPtr) ((ulong) iView), IntPtr.Zero); }
public static Size ListView_GetItemSpacing(IntPtr hwnd, LV_VIEW view) { int num; switch (view) { case LV_VIEW.LV_VIEW_ICON: num = (int) Windows.SendMessage(hwnd, 0x1033, IntPtr.Zero, IntPtr.Zero); break; case LV_VIEW.LV_VIEW_SMALLICON: num = (int) Windows.SendMessage(hwnd, 0x1033, (IntPtr) 1, IntPtr.Zero); break; default: throw new ArgumentException(); } return new Size(num & 0xffff, num >> 0x10); }