KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q130591: INFO: CPropertyPage::CancelToClose() Documented Incorrectly

Article: Q130591
Product(s): Microsoft C Compiler
Version(s): winnt:
Operating System(s): 
Keyword(s): kbdocfix kbdocerr kbMFC KbUIDesign kbVC152bug kbVC200bug kbVC210bug kbVC400fix kbGrpDSM
Last Modified: 06-MAY-2001

-------------------------------------------------------------------------------
The information in this article applies to:

- The Microsoft Foundation Classes (MFC), used with:
   - Microsoft Visual C++, version 1.52 
   - Microsoft Visual C++ 32-bit Edition, versions 2.0, 2.1, 2.2 
-------------------------------------------------------------------------------

SUMMARY
=======

The documentation for the CancelToClose member function of the CPropertyPage
class states that this function changes the text of the Cancel button to read
Close. This is incorrect.

The implementation of the CPropertyPage::CancelToClose() function actually does
the following two things:

- Disables the property sheet's Cancel button.

- Changes the text of the property sheet's OK button to read Close.

This problem was fixed in Microsoft Visual C++, 32-bit Edition, version 4.0.

Additional query words: 1.52 2.00 2.10 2.52 3.00 3.10 4.00

======================================================================
Keywords          : kbdocfix kbdocerr kbMFC KbUIDesign kbVC152bug kbVC200bug kbVC210bug kbVC400fix kbGrpDSMFCATL 
Technology        : kbAudDeveloper kbMFC
Version           : winnt:

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.