CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    2

    Question how can i get file or folder icon?

    i have used ExtractAssociatedIcon function but i found that this function get the icon from an exe file or a resource file.

    how can i get any file or folder's icon?

  2. #2
    Join Date
    May 2005
    Posts
    4,954

    Re: how can i get file or folder icon?

    Did you try ::SHGetFileInfo() ? it has the SHGFI_ICON flag in which you can retrieve the icon handle.

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured