PRB: CFileDialog::DoModal() Does Not Display FileOpen Dialog (131225)
The information in this article applies to:
This article was previously published under Q131225 SYMPTOMS
Calling CFileDialog::DoModal() returns without displaying the FileOpen
common dialog.
CAUSE
The CFileDialog class will automatically use the new Explorer-style
FileOpen common dialog under Windows 95. This can break existing code which
customizes these dialogs with custom templates, because the mechanism has
changed in Windows 95.
NOTE: This does not apply to Windows NT 3.51, as this version of Windows NT will not display the new Explorer-style dialog.
RESOLUTION
An application that depends on the old behavior of customizing the File
Open common dialogs will need to reset the OFN_EXPLORER bit in the Flags
member of the OPENFILENAME structure before calling CFileDialog::DoModal.
REFERENCES
This information was derived from Visual C++ 2.1 Technical Note 52:
"Writing Windows 95 Applications with MFC 3.1"
Modification Type: | Major | Last Reviewed: | 3/24/2002 |
---|
Keywords: | kbprb KB131225 |
---|
|