- 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:
James Tabor 2006-08-13 04:48:34 +00:00
parent 2c5ded9a8c
commit 4e777dcafd
2 changed files with 7 additions and 1 deletions

View file

@ -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;

View file

@ -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