MFC: select folder dialog box

Started by
4 comments, last by Toni Petrina 19 years, 10 months ago
I am really stuck and I can''t solve this problem (my head hurts). Does anyone know how to make dialog box to select folder. I''ve tried overriding CFileDialog but that does not work. Hook functions don''t work to. I just need to know how to select folder using common dialog boxes
So... Muira Yoshimoto sliced off his head, walked 8 miles, and defeated a Mongolian horde... by beating them with his head?

Documentation? "We are writing games, we don't have to document anything".
Advertisement
Unfortunately, MFC doesn''t have a built-in folder selection dialog. You''ll have to use some Windows Shell code, namely SHBrowseForFolder.
quote:Original post by Zipster
Unfortunately, MFC doesn''t have a built-in folder selection dialog. You''ll have to use some Windows Shell code, namely SHBrowseForFolder.


I''ve tried that but it doesn''t seem to work. I guess I should create my own class after all.

So... Muira Yoshimoto sliced off his head, walked 8 miles, and defeated a Mongolian horde... by beating them with his head?

Documentation? "We are writing games, we don't have to document anything".
It should work fine. How are you calling it?
Thanks god for MSDN. It works now. Thanks anyway. I found example for using it:-)
So... Muira Yoshimoto sliced off his head, walked 8 miles, and defeated a Mongolian horde... by beating them with his head?

Documentation? "We are writing games, we don't have to document anything".
you could try this wraper for SHBrowseForFolder

http://www.codeproject.com/dialog/XBrowseForFolder.asp

http://www.funvill.com
====Funvill[Home|Tiny xml|Boost|Wiki|STL]====================

This topic is closed to new replies.

Advertisement