Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Few icons which crash ImageList
Message
 
To
21/06/2018 08:53:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
MS SQL Server
Miscellaneous
Thread ID:
01660782
Message ID:
01660804
Views:
205
>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).aspx


MartinaJ
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform