BUG: Visual C++ Cascaded Menus Ignore Mouse Click

ID: Q216335


The information in this article applies to:
  • Microsoft Visual Studio 97
  • Microsoft Visual C++, 32-bit Editions, versions 5.0, 6.0


SYMPTOMS

When a cascading menu is clicked in Microsoft Developer Studio, nothing happens. If the mouse remains over the menu item, the pop-up menu might appear after a period of time.


CAUSE

The delay for displaying cascading menus can be increased in the registry. Unlike other applications, Developer Studio does not override that delay when the mouse is clicked on the pop-up menu.

For example, if the delay for showing the cascaded menu is set to 10 seconds, then the cascaded menu will not show until the 10 seconds have elapsed. Clicking on it will not cause the pop-up menu to appear faster.


RESOLUTION

There are several ways to work around or fix this problem:

  • Use the shortcut keys for the menu items. This will cause the pop-up menu to appear immediately.


  • Press the RIGHT-ARROW key after selecting the cascading menu item. This method also overrides the delay.


  • The delay can also be modified directly using RegEdit.Exe. The registry key that controls this setting can be found at the following location:


  • HKEY_CURRENT_USER\Control Panel\Desktop\[MenuShowDelay]
WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

Microsoft STRONGLY recommends saving the current registry settings before starting this procedure. For additional information, please see the following article in the Microsoft Knowledge Base:
Q103280 Using an Emergency Repair Disk Created by Windows NT


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

A popular Microsoft download that changes this key through the control panel is called Tweak UI. This tool is unsupported. It can be downloaded from the following web site:

http://www.microsoft.com/windows/downloads/contents/wutoys/nttweakui/default.asp
To modify the menu delay with this tool, follow these steps:
  1. In the Control panel, double-click TweakUI.


  2. On the Mouse tab of the Tweak UI utility, you can specify the Menu Speed.


  3. Change the speed to a faster value.


Additional query words:

Keywords : kbide kbRegistry kbVC500 kbVC500bug kbVC600bug kbVisID100 kbVJ100 kbVJ110 kbVS97 kbDevStudio kbDSupport kbGrpDSTools
Version : WINDOWS:97; winnt:5.0,6.0
Platform : WINDOWS winnt
Issue type : kbbug


Last Reviewed: September 9, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.