user32: Use symbolic names for values returned by WM_MENUCHAR handler.

This commit is contained in:
Dmitry Timoshkov 2011-04-08 20:49:15 +09:00 committed by Alexandre Julliard
parent 05b1aea244
commit 094db744ce
1 changed files with 2 additions and 2 deletions

View File

@ -784,8 +784,8 @@ static UINT MENU_FindItemByKey( HWND hwndOwner, HMENU hmenu,
}
menuchar = SendMessageW( hwndOwner, WM_MENUCHAR,
MAKEWPARAM( key, menu->wFlags ), (LPARAM)hmenu );
if (HIWORD(menuchar) == 2) return LOWORD(menuchar);
if (HIWORD(menuchar) == 1) return (UINT)(-2);
if (HIWORD(menuchar) == MNC_EXECUTE) return LOWORD(menuchar);
if (HIWORD(menuchar) == MNC_CLOSE) return (UINT)(-2);
}
return (UINT)(-1);
}