DOCERR: AfxMessageBox Missing Information in MFC.HLP

Last reviewed: July 22, 1997
Article ID: Q113425
1.50 WINDOWS kbprg kbdocerr

The information in this article applies to:

  • The Microsoft Foundation Classes (MFC) included with: Microsoft Visual C++ for Windows, version 1.5

SUMMARY

The help file, MFC.HLP, for the Microsoft Foundation Class (MFC) Libraries is missing information for the AfxMessageBox function. The missing information describes the nType parameter, which is the second parameter to the AfxMessageBox function and describes the style of the message box.

Under Microsoft Visual C++ for Windows, version 1.0, the MFC.HLP file for the MFC Library version 2.0 contains a jump to a description of the values for nType. The MFC 2.5 help file supposedly lists the values for nType in the AfxMessageBox help text, but this text is missing.

RESOLUTION

The message box styles used as the nType parameter are documented in the MessageBox functions for both the MFC and the Windows Software Development Kit (SDK) help files.

MORE INFORMATION

The message box styles used for the nType parameter can be one of the following constants, defined in WINDOWS.H:

   Value                   Message Box Style
   -------------------------------------------------------------

   MB_ABORTRETRYIGNORE     Message box with three buttons: Abort,
                           Retry, and Ignore

   MB_OK                   Message box with one button labeled OK

   MB_OKCANCEL             Message box with two buttons: OK and
                           Cancel

   MB_YESNO                Message box with two buttons: Yes and No

   MB_YESNOCANCEL          Message box with three buttons: Yes, No,
                           and Cancel


Additional reference words: 1.50 2.50 pushbutton doc err command
KBCategory: kbprg kbdocerr
KBSubcategory: MfcUI
Keywords : kb16bitonly
Technology : kbMfc


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.

Last reviewed: July 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.