I'm not sure if I'm doing the right thing here. I've created an image list, assigned an icon to it, and assigned it to a list view control. The style is LVS_ICON, and the icon sizes are 32 * 32. The output is not perfect though. There are black lines along the bottom and right edges of the icon. I've attached a .bmp of the offending icon.
Code:HIMAGELIST hil; hil=ImageList_Create(32,32,ILC_COLOR32|ILC_MASK,1,1); ImageList_AddIcon(hil,LoadIcon(NULL,IDI_APPLICATION)); SendMessage(hList,LVM_SETIMAGELIST,(WPARAM)LVSIL_NORMAL,(LPARAM)hil);