Getting Icon - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Getting Icon

bogdanul2003bogdanul2003 Posts: 153Member
Which Windows API I have to use to get the icon asocieted with an file extension.For example for ".txt" to get the icon which apear in Explorer for a .txt file.
10x

Comments

  • tsagldtsagld Posts: 621Member
    : Which Windows API I have to use to get the icon asocieted with an file extension.For example for ".txt" to get the icon which apear in Explorer for a .txt file.
    : 10x
    :
    You can use the SHGetFileInfo API. You can pass it a filename with the requested extension. The filename does not have to be a valid filename.


    Greets,
    Eric Goldstein
    www.gvh-maatwerk.nl

Sign In or Register to comment.