mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:43:00 +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,7 +2387,12 @@ MenuExecFocusedItem(MTRACKER *Mt, PROSMENUINFO MenuInfo, UINT Flags)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PostMessageW(Mt->OwnerWnd, WM_COMMAND, ItemInfo.wID, 0);
|
if (MenuInfo->dwStyle & MNS_NOTIFYBYPOS)
|
||||||
|
PostMessageW(Mt->OwnerWnd, WM_MENUCOMMAND,
|
||||||
|
MenuInfo->FocusedItem,
|
||||||
|
(LPARAM)MenuInfo->Self);
|
||||||
|
else
|
||||||
|
PostMessageW(Mt->OwnerWnd, WM_COMMAND, ItemInfo.wID, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wID = ItemInfo.wID;
|
wID = ItemInfo.wID;
|
||||||
|
|
|
@ -1435,6 +1435,7 @@ extern "C" {
|
||||||
#define WM_MENURBUTTONUP 290
|
#define WM_MENURBUTTONUP 290
|
||||||
#endif
|
#endif
|
||||||
#define WM_MENUCHAR 288
|
#define WM_MENUCHAR 288
|
||||||
|
#define WM_MENUCOMMAND 294
|
||||||
#define WM_MENUSELECT 287
|
#define WM_MENUSELECT 287
|
||||||
#define WM_NEXTMENU 531
|
#define WM_NEXTMENU 531
|
||||||
#define WM_MOVE 3
|
#define WM_MOVE 3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue