PRB: ClassWizard Uses WM_HELPINFO Instead of WM_HELP

ID: Q140676


The information in this article applies to:
  • The Microsoft Foundation Classes (MFC), included with:
    • Microsoft Visual C++, 32-bit Editions, versions 4.0, 4.1, 4.2, 5.0, 6.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.

Additional query words:

Keywords : kbprg kbtool kbwizard kbMFC kbVC400 kbVC410 kbVC420 kbVC500 kbVC600 kbGrpDSTools
Version : 4.0 4.1 4.2 5.0 6.0
Platform : NT WINDOWS
Issue type : kbprb


Last Reviewed: July 22, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.