Author: jimtabor
Date: Sun Aug 13 08:48:34 2006
New Revision: 23565
URL:
http://svn.reactos.org/svn/reactos?rev=23565&view=rev
Log:
- User32: menu, Patch by Aric Stewart, Implement MNS_NOTIFYBYPOS. Added WM_MENUCOMMAND to
winuser.h.
Modified:
trunk/reactos/dll/win32/user32/windows/menu.c
trunk/reactos/include/psdk/winuser.h
Modified: trunk/reactos/dll/win32/user32/windows/menu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/m…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/menu.c (original)
+++ trunk/reactos/dll/win32/user32/windows/menu.c Sun Aug 13 08:48:34 2006
@@ -2387,7 +2387,12 @@
}
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;
Modified: trunk/reactos/include/psdk/winuser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winuser.h?rev…
==============================================================================
--- trunk/reactos/include/psdk/winuser.h (original)
+++ trunk/reactos/include/psdk/winuser.h Sun Aug 13 08:48:34 2006
@@ -1435,6 +1435,7 @@
#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