internal static void SetItemState(ListView listView, int itemIndex, int mask, int value) { NativeListViewItem lvItem = new NativeListViewItem { stateMask = mask, state = value }; SendMessage(listView.Handle, LVM_SETITEMSTATE, itemIndex, ref lvItem); }
internal static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, ref NativeListViewItem lvi);