Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract Associated Icon to a Treeview
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00668799
Message ID:
00669439
Views:
28
>hIcon remains 0 after the call to ExtractIconEX(). I have tried different files with the same result.

That's the problem then. Icon indexes are 0 based. If there are six icons in the file, they're numbered 0 through 5. 0 will return the first icon. Try that, and see if the object doesn't properly initialize.

I fixed my problem, BTW. Had the wrong version of the ImageList loaded (Doh!).< g >
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform