Solved

Extracting Assosiated Fileicons

Posted on 1997-05-26
2
133 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now