Mercurial > dwindows
comparison win/dw.c @ 71:291c30a92b9b
Fixed a bug where if dw_filesystem_* was used then the last column
wouldn't be optimized.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 10 Feb 2002 18:22:25 +0000 |
parents | 9510897c0b03 |
children | ab77a22a2a36 |
comparison
equal
deleted
inserted
replaced
70:5e7a4d93d8d7 | 71:291c30a92b9b |
---|---|
5385 l = 1; | 5385 l = 1; |
5386 | 5386 |
5387 memcpy(&tempflags[l], flags, sizeof(unsigned long) * count); | 5387 memcpy(&tempflags[l], flags, sizeof(unsigned long) * count); |
5388 tempflags[count + l] = 0; | 5388 tempflags[count + l] = 0; |
5389 cinfo->flags = tempflags; | 5389 cinfo->flags = tempflags; |
5390 cinfo->columns = count; | 5390 cinfo->columns = count + l; |
5391 | 5391 |
5392 | 5392 |
5393 for(z=0;z<count;z++) | 5393 for(z=0;z<count;z++) |
5394 { | 5394 { |
5395 if(titles[z]) | 5395 if(titles[z]) |
5911 index = ListView_GetNextItem(handle, index, LVNI_ALL); | 5911 index = ListView_GetNextItem(handle, index, LVNI_ALL); |
5912 } | 5912 } |
5913 | 5913 |
5914 /* Set the new sizes */ | 5914 /* Set the new sizes */ |
5915 for(z=0;z<cinfo->columns;z++) | 5915 for(z=0;z<cinfo->columns;z++) |
5916 ListView_SetColumnWidth(handle, z, columns[z] + 15); | 5916 ListView_SetColumnWidth(handle, z, columns[z] + 16); |
5917 | 5917 |
5918 free(columns); | 5918 free(columns); |
5919 free(text); | 5919 free(text); |
5920 } | 5920 } |
5921 } | 5921 } |