Article ID: 139696 - Last Review: November 21, 2006 - Revision: 3.1 WinHelp is called two times when you press F1 in an AppWizard-generated MFC applicationThis article was previously published under Q139696 SYMPTOMS
In an AppWizard-generated MFC application with context-sensitive help
support, pressing F1 causes WinHelp to be called twice. In most cases, the
application displays the correct help topic. In some cases, however, the
application displays the wrong help topic. This can happen when the user
clicks a toolbar button and presses F1 before releasing the mouse button. This occurs only under the operating systems that support the WM_HELP message, such as Windows 95 or Windows NT 4.0. CAUSE
CWnd in MFC 4.0 has a handler for WM_HELP that sends a WM_COMMAND with an
id of ID_HELP. The AppWizard-generated application also has an accelerator
for the F1 key. Both result in WinHelp being called.
RESOLUTION
There are two possible resolutions:
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. APPLIES TO
| Article Translations
|
Back to the top
