When you use CMFCEditBrowseCtrl
] class you get the selected path the same way you do with a normal edit control. I.e. you use GetWindowText() method.
As you know, the control can be created with three modes: file mode, folder mode and custom mode. Let's put the custom mode aside and check file and folder modes. The former, according to MSDN:
Quote:A standard file selection dialog box is displayed when the user clicks the browse button.
And the latter:
Quote:A standard folder selection dialog box is displayed when the user clicks the browse button.
So, as you see you can use the control for both Folders and Files.
You've asked how to get the path name. I assume you used your control in file mode and now want to strip the file part and get only the path part. You do this using PathRemoveFileSpec
] function. Here is a small example:
You can check my article Image Cataloguer
], where I use the new controls from the MFC Feature pack