Hello. I'm using a treeview control on my Access 2007 form. The treeview will be used to show the directory structure of a given file path. I've been able to successfully populate the nodes on the treeview. What I don't know how to do is locate the appropriate icons to place next to the nodes. Or, put another way, how to I query local computer's OS to find out which icon goes with each file?
For example, I want to display folder icon next to directories, a Microsoft Access icon next to Access files, and an Excel icon next to Excel files ... just like Windows Explorer does.
I don't need the complete code (although that would be nice), just a point in the right direction. An API call maybe?
I've researched previous posts at this site and looked at the Howtos, but I didn't see anything that demostrated how to find the icons (just load up the nodes, which I can already do).
Also, can anyone send me the help files for the Windows Common Controls? They're supposed to come with Windows XP (like the controls do) but I don't have them. I guess this is a common problem. The files are:
cmctl198.chm
cmctl198.chi
Thanks,
sphinney
For example, I want to display folder icon next to directories, a Microsoft Access icon next to Access files, and an Excel icon next to Excel files ... just like Windows Explorer does.
I don't need the complete code (although that would be nice), just a point in the right direction. An API call maybe?
I've researched previous posts at this site and looked at the Howtos, but I didn't see anything that demostrated how to find the icons (just load up the nodes, which I can already do).
Also, can anyone send me the help files for the Windows Common Controls? They're supposed to come with Windows XP (like the controls do) but I don't have them. I guess this is a common problem. The files are:
cmctl198.chm
cmctl198.chi
Thanks,
sphinney
Comment