Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 5
0
 private static extern IntPtr SendMessageLVI(IntPtr hWnd, int msg,
     int wParam, ref LVITEMA lvi);
Esempio n. 6
0
 static extern int SendMessage(IntPtr hWnd, ListViewMessages Msg, int wParam, ref LVITEMA lvitem);
Esempio n. 7
0
 private static extern IntPtr PostMessageLVI(IntPtr hWnd, int msg,
                                             int wParam, ref LVITEMA lvi);
Esempio n. 8
0
 extern static int PostMessage(IntPtr hWnd, ListViewMessages Msg, int wParam, ref LVITEMA lvitem);