DOC: CFileDialog::DoModal Does Not Return 0Last reviewed: January 15, 1998Article ID: Q162160 |
The information in this article applies to:
SUMMARY The documentation for the Class Library Reference distributed with Visual C++ is incorrect. The documentation states:
IDOK or IDCANCEL if the function is successful; otherwise 0. IDOK and IDCANCEL are constants that indicate whether the user selected the OK or Cancel button. If IDCANCEL is returned, you can call the Windows CommDlgExtendedError function to determine whether an error occurred.The corrected documentation should read:
IDOK or IDCANCEL. If IDCANCEL is returned, you can call the Windows CommDlgExtendedError function to determine whether an error occurred. IDOK and IDCANCEL are constants that indicate whether the user selected the OK or Cancel button. MORE INFORMATIONThis correction applies to the documentation for the following MFC common dialog classes: CFileDialog, CColorDialog, CFontDialog, CPageSetupDialog, CPrintDialog, and CFindReplaceDialog. Note that 0 is not a legitimate return value for the MFC common dialog DoModal member function.
|
Additional query words: CfileDialog CColorDialog CfontDialog
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |