PRB: ClassWizard Uses WM_HELPINFO Instead of WM_HELP

Last reviewed: June 26, 1997
Article ID: Q140676
The information in this article applies to:
  • The Microsoft Foundation Classes (MFC) included with: - Microsoft Visual C++, 32-bit Edition, versions 4.0, 4.1, 4.2, 5.0

SYMPTOMS

When you use ClassWizard to add a handler for the WM_HELP message, the message is not listed in the Messages list box. Instead, the message is listed as WM_HELPINFO.

RESOLUTION

Select WM_HELPINFO to add a handler for WM_HELP.

MORE INFORMATION

Previous versions of MFC define OnHelp as the function to handle the WM_COMMAND message with ID_HELP. To avoid conflicts with this message handler, MFC 4.x and higher use OnHelpInfo as the name of the function that handles the WM_HELP message. So ClassWizard shows the WM_HELP message as WM_HELPINFO.


Keywords : kbprg kbtool WizardIss
Technology : kbMfc
Version : 4.0 4.1 4.2 5.0
Platform : NT WINDOWS
Issue type : kbprb


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: June 26, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.