The information in this article applies to:
If an application specifies a custom dialog box template for a CFileDialog object and calls the DoModal() member function, DoModal() may return immediately without displaying the dialog box. Verify that you assign the correct dialog box template and application instance handle to the CFileDialog data members m_ofn.lpTemplateName and m_ofn.hInstance, respectively. Verify that each control in your customized dialog box template is valid and that the dialog box resource is compiled into the .RES file. If either data member is incorrect or if it is unable to create a control in the dialog box, the DoModal() member function returns immediately without displaying the dialog box. The Microsoft Foundation Classes library defines a CFileDialog class that encapsulates the OPENFILENAME structure and the GetOpenFileName() and GetSaveFileName() functions of the Microsoft Windows application programming interface (API). For more information about this class, please refer to Technical Note 13 (TN013.TXT) which the C/C++ version 7.0 Setup program installs, by default, into the C:\C700\MFC\DOC directory. For more information about the Common Dialog Boxes library COMMDLG.DLL, please refer to Chapter 4 of the Microsoft Windows Software Development Kit (SDK) "Programmer's Reference, Volume 4: Resources" manual for version 3.1. To modify the dialog box that CFileDialog displays, perform the following five steps:
Additional query words: kbinf 7.00 1.00 1.50 2.00 2.50
Keywords : |
Last Reviewed: July 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |