Microsoft KB Archive/140676

= PRB: ClassWizard Uses WM_HELPINFO Instead of WM_HELP =

Article ID: 140676

Article Last Modified on 11/21/2006

-

APPLIES TO

 Microsoft Foundation Class Library 4.2, when used with:  Microsoft Visual C++ 4.0 Standard Edition

 Microsoft Visual C++ 4.1 Subscription

 Microsoft Visual C++ 4.2 Enterprise Edition

 Microsoft Visual C++ 5.0 Enterprise Edition</li></ul>

 Microsoft Visual C++ 6.0 Enterprise Edition</li></ul>

 Microsoft Visual C++ 4.2 Professional Edition</li></ul>

 Microsoft Visual C++ 5.0 Professional Edition</li></ul>

 Microsoft Visual C++ 6.0 Professional Edition</li></ul>

 Microsoft Visual C++ 6.0 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q140676

<div class="symptoms_section">

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.

<div class="resolution_section">

RESOLUTION
Select WM_HELPINFO to add a handler for WM_HELP.

<div class="moreinformation_section">

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

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.