shell32: Create a 32-bpp image list to get alpha blended icons.

This commit is contained in:
Alexandre Julliard 2010-06-13 16:50:43 +02:00
parent 86e2494f9b
commit 8932fe2a84
1 changed files with 2 additions and 2 deletions

View File

@ -216,9 +216,9 @@ static BOOL Control_CreateListView (CPanel *panel)
/* Create image lists for list view */
panel->hImageListSmall = ImageList_Create(GetSystemMetrics(SM_CXSMICON),
GetSystemMetrics(SM_CYSMICON), ILC_MASK, 1, 1);
GetSystemMetrics(SM_CYSMICON), ILC_COLOR32 | ILC_MASK, 1, 1);
panel->hImageListLarge = ImageList_Create(GetSystemMetrics(SM_CXICON),
GetSystemMetrics(SM_CYICON), ILC_MASK, 1, 1);
GetSystemMetrics(SM_CYICON), ILC_COLOR32 | ILC_MASK, 1, 1);
SendMessageW(panel->hWndListView, LVM_SETIMAGELIST, LVSIL_SMALL, (LPARAM)panel->hImageListSmall);
SendMessageW(panel->hWndListView, LVM_SETIMAGELIST, LVSIL_NORMAL, (LPARAM)panel->hImageListLarge);