Re: Displaying Window Icons in Listbox.



"Nicky" wrote:
i want to display local files and directories in a list box
in my
program. i am able to retrieve tht but i want to display
respective
icons against the file name.
File extensions can be retrieved using GetExtension in
mfc.
i want to display the icons using Windows, NOT create my
own bitmaps.
kindly suggest how to go about it.


Look for SHGetFileInfo function in MSDN.

HTH
Alex


.



Relevant Pages

  • Re: Displaying Window Icons in Listbox.
    ... i am able to retrieve tht but i want to display respective ... File extensions can be retrieved using GetExtension in mfc. ... i want to display the icons using Windows, ...
    (microsoft.public.vc.mfc)
  • Re: Displaying Window Icons in Listbox.
    ... i am able to retrieve tht but i want to display respective ... File extensions can be retrieved using GetExtension in mfc. ... i want to display the icons using Windows, ...
    (microsoft.public.vc.mfc.docview)
  • Re: Displaying Window Icons in Listbox.
    ... Send this message WM_GETICON,Use SendMessageTimeout ... i am able to retrieve tht but i want to display respective ... i want to display the icons using Windows, ...
    (microsoft.public.vc.mfc)
  • Re: Displaying Window Icons in Listbox.
    ... the datatype tht i recieve by using SHGetFileInfo is HICON. ... is there anyway tht i can display icons using LV_ITEM???? ... i am able to retrieve tht but i want to display respective ...
    (microsoft.public.vc.mfc)
  • Displaying Window Icons in Listbox.
    ... i want to display local files and directories in a list box in my ... i am able to retrieve tht but i want to display respective ... i want to display the icons using Windows, ...
    (microsoft.public.vc.mfc)