Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HIcon to ImageList
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00324431
Message ID:
00325262
Views:
27
Ed & George,

I've been playing with this stuff for the last week or so. I can work out which Icon to load (from the HKCR keys), load an icon with ExtractIcon() which returns an icon handle but (and I think this is the non-trivial step) I can't persist the icon referred to so it can be loaded into an image list.

I've been scouring MSDN, thinking about stuff like creating/obtaining a DC and writing it there, then writing the bitmap to a file and so on, but I can't find the magic savetofile()-type function.

Cheers,

Andrew

>
>If you'll pardon the pun: "By George, I think he's got it!"
>
>>I don't know whether or not this will work. The only way to find out is to try it. Be pretty neat if it does.


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform