Andrew Truckle
Andrew Truckle

Reputation: 19147

How to allow user to add a new folder when using the CMFCEditBrowseCtrl?

I am looking to add a CMFCEditBrowseCtrl to my dialog:

MFC EditBrowse Control

It works:

Results

But I am unable to create a new folder using this approach.

How do fix that?

Upvotes: 0

Views: 357

Answers (1)

xMRi
xMRi

Reputation: 15365

EnableFolderBrowseButton has a last parameter with the name ulBrowseFolderFlags.

You have to define BIF_RETURNONLYFSDIRS|BIF_USENEWUI. Or use BIF_NEWDIALOGSTYLE.

Also look at the MSDN documentation. If you google for the flags you find further discussion and samples.

Upvotes: 1

Related Questions