410 |
|
|
411 |
|
|
412 |
void |
void |
413 |
listview_set_image_list (listview_ctrl_t ctx, HICON *ico, DWORD nicons) |
listview_set_image_list (listview_ctrl_t ctx, int cx, int cy, |
414 |
|
HICON *ico, DWORD nicons) |
415 |
{ |
{ |
416 |
HIMAGELIST hil; |
HIMAGELIST hil; |
417 |
DWORD i; |
DWORD i; |
418 |
|
|
419 |
hil = ImageList_Create (16, 16, ILC_COLOR8|ILC_MASK, nicons, 1); |
if (cx == 0 || cy == 0) |
420 |
|
cx = cy = 16; |
421 |
|
|
422 |
|
hil = ImageList_Create (cx, cy, ILC_COLOR8|ILC_MASK, nicons, 1); |
423 |
ImageList_SetBkColor (hil, CLR_NONE); |
ImageList_SetBkColor (hil, CLR_NONE); |
424 |
for (i=0; i < nicons; i++) |
for (i=0; i < nicons; i++) |
425 |
ImageList_AddIcon (hil, ico[i]); |
ImageList_AddIcon (hil, ico[i]); |