comparison win/dw.c @ 32:f3bf96c2786d

Added missing exports, added new tree functions and signals, fixed Win32 problem of showing icons even when not explicitly set.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 27 Aug 2001 17:16:12 +0000
parents b1d7e8a28dfa
children 72675de7d229
comparison
equal deleted inserted replaced
31:17a08cfd45d2 32:f3bf96c2786d
4631 void *dw_container_alloc(HWND handle, int rowcount) 4631 void *dw_container_alloc(HWND handle, int rowcount)
4632 { 4632 {
4633 LV_ITEM lvi; 4633 LV_ITEM lvi;
4634 int z; 4634 int z;
4635 4635
4636 lvi.mask = LVIF_DI_SETITEM | LVIF_TEXT; 4636 lvi.mask = LVIF_DI_SETITEM | LVIF_TEXT | LVIF_IMAGE;
4637 lvi.iSubItem = 0; 4637 lvi.iSubItem = 0;
4638 /* Insert at the end */ 4638 /* Insert at the end */
4639 lvi.iItem = 1000000; 4639 lvi.iItem = 1000000;
4640 lvi.pszText = ""; 4640 lvi.pszText = "";
4641 lvi.cchTextMax = 1; 4641 lvi.cchTextMax = 1;
4642 lvi.iImage = -1;
4642 4643
4643 for(z=0;z<rowcount;z++) 4644 for(z=0;z<rowcount;z++)
4644 ListView_InsertItem(handle, &lvi); 4645 ListView_InsertItem(handle, &lvi);
4645 return (void *)handle; 4646 return (void *)handle;
4646 } 4647 }