How to get the file icon and insert to listctrl?
-
Get the file icon by calling
SHGetFileInfo()
withuFlags
asSHGFI_ICON
and you'll get theHICON
handle. Get the ImageList of your list ctrl and add the file icon to it by callingCImageList::Add()
, so that you can add that icon to your list ctrl. For adding new item to list ctrl, refer http://www.functionx.com/visualc/controls/listcontrol.htm[^] Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
Get the file icon by calling
SHGetFileInfo()
withuFlags
asSHGFI_ICON
and you'll get theHICON
handle. Get the ImageList of your list ctrl and add the file icon to it by callingCImageList::Add()
, so that you can add that icon to your list ctrl. For adding new item to list ctrl, refer http://www.functionx.com/visualc/controls/listcontrol.htm[^] Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
Oh thanks for your votes. :-D
-
Oh thanks for your votes. :-D
-
And Im thankful twice. :-D