Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ExtractIcon API Call
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00354869
Message ID:
00354910
Views:
17
>I have issued the API call Extracticon and it has returned a handle to the icon I require. I cannot find any control in VFP that can be used with a Hdc reference to display the Icon. Any suggestions would be much appreciated
>
>Thanks
>
Anthony,

AFAIK, the only way to display an icon reference is to call the DrawIcon()function. I wrote an article in the Aug., 1998 issue of FoxPro Advisor that demonstrates how to do this. Further, there's a dialog (FileExists) in my Obj2Bmp application that uses LoadIcon() as a source of the icon handle. The technique for displaying it is the same as using ExtractIcon() or ExtractAssocatedIcon() as the source. You can download Obj2Bmp from the files section here at the UT under Win32 and other APIs.
George

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

Click here to load this message in the networking platform