BUG: WinHelp Called TwiceLast reviewed: July 31, 1997Article ID: Q139696 |
The information in this article applies to:
SYMPTOMSIn 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 3.51.
CAUSECWnd 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.
RESOLUTIONThere are two possible resolutions:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. Keywords : MfcMisc vcbuglist400 vcbuglist500 kbprg kbbuglist Technology : kbMfc Version : 4.0 4.1 4.2 4.21 5.0 Platform : NT WINDOWS |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |