Creating a "browse" dialog
Posted on 2003-11-04
For a small application i am writting i require a dialog in which the user can browse their computer and select files from it (very much like windows explorer).
I am using VS 6.0 on windows 2000. On the dialog i have added a tree control and was under the impression that if i could perform a somewhat recursive sweep of all local drives i would have the information in order to populate the tree in the style of windows explorer.
Is this a feasible route? I have looked round and have only come across functions such as _findfirst which would allow me to gather the required information but only from the application directory onwards and only for the applications drive.
Can anybody suggest how this could be done or point me in the direction of how a task like this should be handled.