Don't track the system menu for managed windows.

This commit is contained in:
Alexandre Julliard 2003-05-12 03:19:03 +00:00
parent eb36d31d6f
commit cfd60b217b
1 changed files with 1 additions and 0 deletions

View File

@ -3016,6 +3016,7 @@ void MENU_TrackKbdMenuBar( HWND hwnd, UINT wParam, INT vkey)
if (!hTrackMenu || IsIconic(hwnd) || vkey == VK_SPACE )
{
if (!(GetWindowLongA( hwnd, GWL_STYLE ) & WS_SYSMENU)) return;
if (GetWindowLongA( hwnd, GWL_EXSTYLE ) & WS_EX_MANAGED) return;
hTrackMenu = get_win_sys_menu( hwnd );
uItem = 0;
wParam |= HTSYSMENU; /* prevent item lookup */