implementing file browsing facility using MFC
-
Hello All i want to implement the file browsing facility as in windows when some one presses "open". My application also has the same requirement where if somebody presses a browse button, the window box opens n the user can browse through various files n drives to select the desired file. Please suggest me a way of implementing this. Is there a api for making this facility??. thanks kunal s patel
-
Hello All i want to implement the file browsing facility as in windows when some one presses "open". My application also has the same requirement where if somebody presses a browse button, the window box opens n the user can browse through various files n drives to select the desired file. Please suggest me a way of implementing this. Is there a api for making this facility??. thanks kunal s patel
Check out
CFileDialog
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer
-
Check out
CFileDialog
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer
Hi Mike, Hope you saw the save attachments dialog in Outlook 2000 or 2003. Using the file dialog, it is possible to select a folder. How we could accomplish this? (i.e hiding all files and Allow to Select empty file!) SaRath.
"Do Next Thing..." My Blog | Understanding State Pattern in C++ -
Hi Mike, Hope you saw the save attachments dialog in Outlook 2000 or 2003. Using the file dialog, it is possible to select a folder. How we could accomplish this? (i.e hiding all files and Allow to Select empty file!) SaRath.
"Do Next Thing..." My Blog | Understanding State Pattern in C++SaRath C wrote:
Using the file dialog, it is possible to select a folder.
No, there's a different common dialog for selecting a directory. I don't think MFC has a wrapper class for it, but check out
SHBrowseForFolder()
or the many articles here at CP that have wrappers.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer
-
Hello All i want to implement the file browsing facility as in windows when some one presses "open". My application also has the same requirement where if somebody presses a browse button, the window box opens n the user can browse through various files n drives to select the desired file. Please suggest me a way of implementing this. Is there a api for making this facility??. thanks kunal s patel
Hi! In the book: Using Visual C++ 6, by Jonathan Bates, Timothy Tompkins, You can find the complete explanation what to do, I think even that there is a complete example how to create such an application! The main thing is how to recognize the file attributes, which can be either a Directory or an ordinary file. Then, You have to find which is the "first of" in the current directory (as You iterate through the tree), and which is the "next one". Using the object list, You can pack these file in the structure, and finally, add the images in the directory tree, which is also explained how to create. Best regards, D. Senic -- modified at 2:23 Monday 26th June, 2006