 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Anthony Guest
|
Posted: Wed Apr 25, 2007 2:47 pm Post subject: view icon from an executable |
|
|
how can i view an icon file from an .exe file and have it display on the
main form as an image??? |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Apr 25, 2007 9:23 pm Post subject: Re: view icon from an executable |
|
|
"Anthony" <anfo (AT) hotmail (DOT) com> wrote in message
news:462f23a5 (AT) newsgroups (DOT) borland.com...
| Quote: | how can i view an icon file from an .exe file and have it display
on the main form as an image???
|
Use the Win32 API ExtractIcon/Ex() or SHGetFileInfo() function to get
an HICON handle, then assign that to the Handle property of a TIcon
object, and then use a TImage to display it.
Gambit |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|