public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, ref LVGROUP2 lParam);
public static int InsertGroup(ObjectListView olv, LVGROUP2 group) { return((int)NativeMethods.SendMessage(olv.Handle, LVM_INSERTGROUP, -1, ref group)); }
public static int SetGroupInfo(ObjectListView olv, int groupId, LVGROUP2 group) { return((int)NativeMethods.SendMessage(olv.Handle, LVM_SETGROUPINFO, groupId, ref group)); }
public static int GetGroupInfo(ObjectListView olv, int groupId, ref LVGROUP2 group) { return (int)NativeMethods.SendMessage(olv.Handle, LVM_GETGROUPINFO, groupId, ref group); }
// public static GroupState GetGroupState(ListView olv, int groupId, GroupState mask) // { // return (GroupState)ListViewAPI.SendMessage(olv.Handle, LVM_GETGROUPSTATE, groupId, (int)mask); // } public static int InsertGroup(ListView olv, LVGROUP2 group) { return((int)SendMessage(olv.Handle, LVM_INSERTGROUP, -1, ref group)); }
public static int InsertGroup(ObjectListView olv, LVGROUP2 group) { return (int)NativeMethods.SendMessage(olv.Handle, LVM_INSERTGROUP, -1, ref group); }
public static int GetGroupInfo(ListView olv, int groupId, ref LVGROUP2 group) { return((int)SendMessage(olv.Handle, LVM_GETGROUPINFO, groupId, ref group)); }
public static int SetGroupInfo(ObjectListView olv, int groupId, LVGROUP2 group) { return((int)SendMessage(olv.Handle, 0x1093, groupId, ref group)); }
public static int InsertGroup(ObjectListView olv, LVGROUP2 group) { return((int)SendMessage(olv.Handle, 0x1091, -1, ref group)); }
public static int SetGroupInfo(ObjectListView olv, int groupId, LVGROUP2 group) { return (int) SendMessage(olv.Handle, LVM_SETGROUPINFO, groupId, ref group); }
public static IntPtr GetGroupInfo(ObjectListView olv, int groupId, ref LVGROUP2 group) { return(NativeMethods.SendMessage(olv.Handle, LVM_GETGROUPINFO, groupId, ref group)); }