mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- User32: menu, Patch by Aric Stewart, Implement MNS_NOTIFYBYPOS. Added WM_MENUCOMMAND to winuser.h.
svn path=/trunk/; revision=23565
This commit is contained in:
parent
2c5ded9a8c
commit
4e777dcafd
2 changed files with 7 additions and 1 deletions
|
@ -2387,6 +2387,11 @@ MenuExecFocusedItem(MTRACKER *Mt, PROSMENUINFO MenuInfo, UINT Flags)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (MenuInfo->dwStyle & MNS_NOTIFYBYPOS)
|
||||
PostMessageW(Mt->OwnerWnd, WM_MENUCOMMAND,
|
||||
MenuInfo->FocusedItem,
|
||||
(LPARAM)MenuInfo->Self);
|
||||
else
|
||||
PostMessageW(Mt->OwnerWnd, WM_COMMAND, ItemInfo.wID, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1435,6 +1435,7 @@ extern "C" {
|
|||
#define WM_MENURBUTTONUP 290
|
||||
#endif
|
||||
#define WM_MENUCHAR 288
|
||||
#define WM_MENUCOMMAND 294
|
||||
#define WM_MENUSELECT 287
|
||||
#define WM_NEXTMENU 531
|
||||
#define WM_MOVE 3
|
||||
|
|
Loading…
Reference in a new issue