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:
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:
thats just a tree view control look it up in the common controls section (I think).
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.
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.
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.
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
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
Thank you all.
I will try some of your ideas and let you know.
titanium
I will try some of your ideas and let you know.
titanium