Knowledge Base

PRB: ClassWizard Uses WM_HELPINFO Instead of WM_HELP

Article ID: 140676

Article Last Modified on 11/21/2006


APPLIES TO


This article was previously published under Q140676

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: kbcshelp kbprb kbprogramming kbwizard KB140676