SHGetFileInfo - Return Icon without using ImageList

  • Thread starter Thread starter AdrEsqu
  • Start date Start date
A

AdrEsqu

I am using the SHGetFileInfo to return the system icon. Is there
anyway to return and display the icon with out having to return it to
the ListView?

I'm using the SHGetFileInfo in my SharePoint C# solution web part, and
I cannot reference the system.windows.forms reference so I can not
access the ListView. So I wanted to see if there was a way to return
the Icon from the SHGetFileInfo and display it.


Thanks,

Adrian
 
I am using the SHGetFileInfo to return the system icon. Is there
anyway to return and display the icon with out having to return it to
the ListView?

Sure, there's no need for a ListView. Just specify the SHGFI_ICON flag
and you'll get an icon handle back.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top