The information in this article applies to:
SYMPTOMS
Windows 95 and Windows NT version 3.51 support a new Windows message,
WM_HELP. If a menu is active when F1 is pressed, WM_HELP should be sent to
the window associated with the menu by Windows. However, with an MFC
application, the WM_HELP message never gets sent.
CAUSE
MFC defines default handling of the F1 key to bring up help for menu items.
For more information about F1 help within an MFC application, please see
MFC Technote #28 and the Scribble Tutorial.
RESOLUTIONTo work around this behavior, either use the help system provided by MFC, or override ProcessMessageFilter() for your CWinApp-derived class to by-pass the MFC processing of the F1 key. For example, the code might look like this:
REFERENCESFor more information about adding F1 help to your application, please see the following article in the Microsoft Knowledge Base: Q110506 SAMPLE: Context Sensitive Help in a CDialogOr see the following additional references:
Additional query words: 2.10 2.20 3.1 3.10 3.2 3.20 4.00 Win95
Keywords : kbcode kbnokeyword kbMFC kbVC |
Last Reviewed: January 26, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |