Archived

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

Pseudo

MFC cant do this?

Recommended Posts

Pseudo    100
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
Shannon Barber    1681
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
Null and Void    1088
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   
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
Lance    122
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