Directory Picker Sample Using Modified CFileDialog (105497)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
This article was previously published under Q105497 SUMMARY The default implementation of CFileDialog allows the user to
select a specific file from any drive/directory on the computer. It is possible
to derive a class from CFileDialog, creating a new class that allows the user
to select only a directory. In addition to deriving a new class, this approach
also requires that a custom template be used in conjunction with the new dialog
box. The Directory Picker (DIRPK) sample implements this functionality.
The following
files are available for download from the Microsoft Download
Center: For
additional information about how to download Microsoft Support files, click the
following article number to view the article in the Microsoft Knowledge Base: 119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
DIRPK.EXE was archived as a self-extracting file using the
PKware file-compression utility. The archived file contains subdirectories, and
therefore, the -d switch needs to be used when decompressing the file to disk.
Modification Type: | Minor | Last Reviewed: | 8/9/2004 |
---|
Keywords: | kbdownload kbCmnDlgFileO kbFileIO kbhowto kbSample KB105497 |
---|
|