How To Browse for Folders from the Current Directory (179378)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API)
This article was previously published under Q179378 SUMMARY
By default, the SHBrowseForFolder API lets the user start at the desktop to
browse the shell's namespace and pick a folder. Often, you may prefer that
your application start the browse dialog box at a folder that the user is
likely to want, such as the current working directory.
To set the browse dialog box's initial selection, the BROWSEINFO structure
must contain a callback function. When the callback function is called with
the message BFFM_INITIALIZED, it can in turn send a BFFM_SETSELECTION
message to set the dialog box's selection to the desired path.
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbcode kbhowto KB179378 |
---|
|