doing a windows explorer type dialog w/ vc++ mfc etc..

michaelh20

Senior member
Sep 4, 2000
482
0
0
I was thinking of doing some sort of simple backup program and I was curious if there were some relatively simple way of getting an Windows Explorer like view on the left which shows all the drives, special folders etc.., from which a person can choose things. I'd like to actually program the thing rather than use some ActiveX thing (which I figure is available somewhere), unless there is some built in dialog or class available. I kind of assume CFileDialog isn't setup for the explorer type window, unless there is some magic switch there...

What I do need for sure is a way of getting the root drives c,d,e,f, etc.. , special folders my computer, desktop, my documents, my blah blah, etc.. Do I have to grab the special folders separately, guess at them (i.e. root/desktop is there -> that's desktop etc)? Search for %variable% kinds of things?

I'd also like to be able to grab the icons too, since I can't make them as pretty myself.

Kind of new to windows programming, although I can figure out how to use the tree control, etc..

I am using VC++ 6....


and oh I didn't really mean dialog per se, but to have such a display as part of a window, etc..
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
If you start with all the know hardward drives and do searches onr them to fill up your tree control, you are at a good starting point
 

Adrian Tung

Golden Member
Oct 10, 1999
1,370
1
0
You'll need a splitter window, a tree view and a list view to get an Explorer-style app.

As for special locations, I found SHGetSpecialFolderPath and SHGetSpecialFolderLocation from the MSDN library. I think you can start off from there.


:)atwl
 

Adrian Tung

Golden Member
Oct 10, 1999
1,370
1
0
Originally posted by: michaelh20
What about the regular hard drives, how do I find them?

I'm not sure if there is a function to do so. But I do know that during initialization, you can query all known drives in a for loop by using GetDriveType and work from there.


:)atwl