src/osd/winui/winui.c
| r4408 | r4409 | |
| 5113 | 5113 | int icon_count; |
| 5114 | 5114 | DWORD dwStyle; |
| 5115 | 5115 | int i; |
| 5116 | #ifdef MESS |
| 5117 | int grow = 3000; |
| 5118 | #else |
| 5119 | int grow = 5000; |
| 5120 | #endif |
| 5116 | 5121 | |
| 5117 | 5122 | icon_count = 0; |
| 5118 | 5123 | while(g_iconData[icon_count].icon_name) |
| r4408 | r4409 | |
| 5130 | 5135 | SetWindowLong(hwndList,GWL_STYLE,(dwStyle & ~LVS_TYPEMASK) | LVS_ICON); |
| 5131 | 5136 | |
| 5132 | 5137 | hSmall = ImageList_Create(GetShellSmallIconSize(),GetShellSmallIconSize(), |
| 5133 | | ILC_COLORDDB | ILC_MASK, icon_count, icon_count + 5000); |
| 5138 | ILC_COLORDDB | ILC_MASK, icon_count, icon_count + grow); |
| 5134 | 5139 | hLarge = ImageList_Create(dwLargeIconSize, dwLargeIconSize, |
| 5135 | | ILC_COLORDDB | ILC_MASK, icon_count, icon_count + 5000); |
| 5140 | ILC_COLORDDB | ILC_MASK, icon_count, icon_count + grow); |
| 5136 | 5141 | |
| 5137 | 5142 | if (NULL == hSmall || NULL == hLarge) { |
| 5138 | 5143 | win_message_box_utf8(hwndList, "Cannot allocate Icon lists", "Allocation error - Exiting", IDOK); |