Ejemplo n.º 1
0
 /// <summary>
 /// Changing the style of listview to accept image on subitems
 /// </summary>7
 /// 
 public void SetImage(int row,int column,int imageIndex)
 {
     Win32.USER32.LV_ITEM lvi = new Win32.USER32.LV_ITEM();
     // Row
     lvi.iItem = row;
     // Column
     lvi.iSubItem = column;
     //lvi.pszText = "";//"OAKListView-" + I.ToString();
     lvi.mask = Win32.USER32.LVIF_IMAGE ;//| OAKListView.LVIF_TEXT;
     // Image index on imagelist
     lvi.iImage = imageIndex;
     Win32.USER32.SendMessage(this.Handle, Win32.USER32.LVM_SETITEM, 0, ref lvi);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Changing the style of listview to accept image on subitems
 /// </summary>7
 ///
 public void SetImage(int row, int column, int imageIndex)
 {
     Win32.USER32.LV_ITEM lvi = new Win32.USER32.LV_ITEM();
     // Row
     lvi.iItem = row;
     // Column
     lvi.iSubItem = column;
     //lvi.pszText = "";//"OAKListView-" + I.ToString();
     lvi.mask = Win32.USER32.LVIF_IMAGE;             //| OAKListView.LVIF_TEXT;
     // Image index on imagelist
     lvi.iImage = imageIndex;
     Win32.USER32.SendMessage(this.Handle, Win32.USER32.LVM_SETITEM, 0, ref lvi);
 }