Hey,

I want to create a folder browser, like the one you get using SHBrowseForFolder, in my own dialog window. I have attached a Gif to show you what I mean (taken from WinZip).
Any ideas how do I do that ?

Thank you guys :grin:
Posted on 2002-06-30 14:10:13 by titanium
thats just a tree view control look it up in the common controls section (I think).
Posted on 2002-06-30 14:19:43 by Kudos
SHBrowseForFolder() has its own dialog, and I do not think it supports customizations and templates like COMDLG32's GetOpenFileName()/GetSaveFileName() do. So I am guessing your best solution would be to create the treeview control manually and also, manually, add browsing capabilities to it.
Posted on 2002-06-30 14:33:42 by comrade
For example, there is one (and some more)
Directory browser class based on CTreeCtrl.

http://www.codeguru.com/treeview/CDirTreeCtrl.shtml

Yes, I know it is for C++, yes it is even for MFC.
But, since we have OOP tools By Nan & Exagone now, at least you can...well, give it a look.
Posted on 2002-07-01 06:07:16 by Andycar
If you use the callback for SHBrowseForFolder() you can access the handle and subclass it. You do not have the full range of messages in the subclass but you can access the WM_PAINT and you can handle the start with WM_SHOWWINDOW to initialise what you want.

It will probably be risky but you could try changing the window style and making it a child window with "SetParent()" API.

Regards,

hutch@movsd.com
Posted on 2002-07-01 12:57:44 by hutch--
Thank you all.

I will try some of your ideas and let you know.

titanium
Posted on 2002-07-01 14:09:14 by titanium