I would like to populate a listview with all the files,drives,folders of my pc.
How would one extract the icons of a directory (folder/file icons)?
Also, should I being using the shell extensions for this? If so, how would I go about doing it?
I would like to populate a listview with all the files,drives,folders of my pc.
How would one extract the icons of a directory (folder/file icons)?
Also, should I being using the shell extensions for this? If so, how would I go about doing it?
I don't know if you can get them from the system but I got my folder icons from the VC++ icon library and just included them in my resources.
Is there perhaps a function like GetDlgDirList() for a ListView?
The way that I personally have done these directory trees is with the common control "TREEVIEW" and images from bitmaps such as the folder icons from the VC++ collection. I then filled the tree by walking the directories. As far as I know there isn't a common control that just handles the file system and icons. The treeview is generalized.
files have icons associated with them. folders don't. I think. I just used a standard open and closed folder icon.
There is LB_DIR for listboxes.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill