Exemple #1
0
        internal void SetItemState(int index, uint data, ListViewItemStates mask)
        {
            LVITEMA _ms_lvi = new LVITEMA();

            _ms_lvi.stateMask = mask;
            _ms_lvi.state     = data;
            SendMessage(this.Handle, ListViewMessages.LVM_SETITEMSTATE, index, ref _ms_lvi);
        }
Exemple #2
0
        public void SetSubItemImage(int itemIndex, int subItemIndex, int imageIndex)
        {
            LVITEMA lvItem = new LVITEMA();

            lvItem.mask     = ListViewItemMask.LVIF_IMAGE;
            lvItem.iItem    = itemIndex;
            lvItem.iSubItem = subItemIndex;
            lvItem.iImage   = imageIndex;
            SendMessageLVI(this.Handle, (int)ListViewMessages.LVM_SETITEM, 0, ref lvItem);
        }
Exemple #3
0
 internal void SetItemState(int index, uint data, ListViewItemStates mask)
 {
     LVITEMA _ms_lvi = new LVITEMA();
     _ms_lvi.stateMask = mask;
     _ms_lvi.state = data;
     SendMessage(this.Handle, ListViewMessages.LVM_SETITEMSTATE, index, ref _ms_lvi);
 }
Exemple #4
0
 public void SetSubItemImage(int itemIndex, int subItemIndex, int imageIndex)
 {
     LVITEMA lvItem = new LVITEMA();
     lvItem.mask = ListViewItemMask.LVIF_IMAGE;
     lvItem.iItem = itemIndex;
     lvItem.iSubItem = subItemIndex;
     lvItem.iImage = imageIndex;
     SendMessageLVI(this.Handle, (int)ListViewMessages.LVM_SETITEM, 0, ref lvItem);
 }
Exemple #5
0
 private static extern IntPtr SendMessageLVI(IntPtr hWnd, int msg,
     int wParam, ref LVITEMA lvi);
Exemple #6
0
 static extern int SendMessage(IntPtr hWnd, ListViewMessages Msg, int wParam, ref LVITEMA lvitem);
Exemple #7
0
 private static extern IntPtr PostMessageLVI(IntPtr hWnd, int msg,
                                             int wParam, ref LVITEMA lvi);
Exemple #8
0
 extern static int PostMessage(IntPtr hWnd, ListViewMessages Msg, int wParam, ref LVITEMA lvitem);