Solved

Extracting Assosiated Fileicons

Posted on 1997-05-26
2
144 Views
Last Modified: 2010-04-04
I like to get the icon for a certain file.I use the following code to get the large icon.>TLargeIcon.Handle := ExtractAssociatedIcon (hInstance, >IconPath, IconIndex);
          My Question:How do i get the small icon for use in a ListView component.
0
Comment
Question by:Rakaz
2 Comments
 
LVL 3

Accepted Solution

by:
sperling earned 100 total points
ID: 1336597
Look up ExtractIconEx. This seems to give you both large and small icons. If you need sample code, leave me a comment.

Regards,

Erik.
0
 

Author Comment

by:Rakaz
ID: 1336598
Okay, this seem to extract a small icon, but now i don't know where to extract it from. The ExtractAssociatedIcon function works fine when it comes to extracting an icon, but it doesn't return the path of the associated application or dll (it should according to the win32 api).Please help
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question