>Analyzing the code, found that the error happens on LoadPicture(), as it was its result that was passed to ImageList as a parameter. Ran the same test, with also checking for LoadPicture on all icons in the project. Now it's getting weird - in the current project many more icons now fail the loadpicture test. In the previous version of it, just a few (well, those were from the old batch of icons). For the _screen.icon test, it's only a few, but... the one I uploaded here is 16x17. Reduced that to 16x16 (using Gimp) and guess what, it's now passing the _screen.icon test, but still fails the loadpicture().
>
>What's the API behind loadpicture()? May I be having a wrong version of gdi+? What's the proper version?
Hi Dragan,
Because the icon is RGBA - RGB with alpha chanel. IMHO OCX-Image list doesn't support icon with RGBA. API-image list support icon with RGBA.
https://msdn.microsoft.com/en-us/library/windows/desktop/bb761389(v=vs.85).aspxMartinaJ