Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modifying CFile Dialog

Status
Not open for further replies.

reneb

Programmer
Aug 8, 2000
43
US
I have used the CFileDialog class before in order to have the user specify a filename. But now I want the user to specify a directory/folder. I have seen some applications display a tree structure that allows the user to select a folder, is there another class I can use or do I have to build it my self? I so how? Thanks in advance.

Rene
 
See my reply to the entry above "list directory without using dialog?". :) Click here if this helped! :)
vvvvvvvvv
 
MFC does not have a built-in CDialog derived class for folders. Modifying the m_ofn member of CFileDialog won't help either.

You have to build it yourself using the ShellApi function
SHBrowseForFolder (#include <shlobj.h>).

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top