Ok, all these methods seems to be able to load the icon fine but I'm having troubles adding the icons to a HIMAGELIST structure. I'm pretty sure it's a mismatch in the icon formats somewhere but how can you 'transform' the icon to a small icon with the proper color format?
The ImageList_AddIcon fails every time:
IconList = ImageList_Create(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), ILC_COLOR8 | ILC_MASK, 0, IconContainer.GetSize());
Size = IconContainer.GetSize();
for(i = 0; i < Size; i++)
Index = ImageList_AddIcon(IconList, IconContainer[i]);