Archived

This topic is now archived and is closed to further replies.

MFC cant do this?

This topic is 6115 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m using MFC to make an app and I would like to let the user select a directory. How can I do this? I would have liked to use a common dialog box, but I can only get it to let you choose a file.

Share this post


Link to post
Share on other sites
Do you know how to make it start somewhere down the namespace?
I know you can set a root, but I want the root to stay ''My Computer'', but have the browser expanded to the last place they picked a directory from.

I saw with my own eyes a M$ app do just that - funny it''s not documented... (AFAICT).

Share this post


Link to post
Share on other sites
I'm not sure if this will work, but possibly a initialization event will be sent to the callback function you could have specified (the lpfn member of the BROWSEINFO structure), and you'll be able to change the current directory from there. I haven't tried this though.

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP's Invasive Production Activation Technology!
http://www.gdarchive.net/druidgames/

Edited by - Null and Void on March 21, 2001 5:51:06 PM

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
FordPrefect: Shouldn''t you have ''Somewhere in the vicinity of Betelgeuse'' in your From field?

Share this post


Link to post
Share on other sites
For tons of different implementations of directory selecting and pretty much anything else you are looking for with MFC

www.codeproject.com
www.codeguru.com

-kirk

Share this post


Link to post
Share on other sites