Aric Stewart : user: Implement MNS_NOTIFYBYPOS.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 11 13:37:20 CDT 2006
Module: wine
Branch: master
Commit: 26985e6bec8016a44dcbf8dfb9ac621013edb602
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=26985e6bec8016a44dcbf8dfb9ac621013edb602
Author: Aric Stewart <aric at codeweavers.com>
Date: Thu Aug 10 10:25:49 2006 -0500
user: Implement MNS_NOTIFYBYPOS.
---
dlls/user/menu.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/dlls/user/menu.c b/dlls/user/menu.c
index eb8632a..a28eff7 100644
--- a/dlls/user/menu.c
+++ b/dlls/user/menu.c
@@ -37,7 +37,6 @@
* - MNS_AUTODISMISS
* - MNS_DRAGDROP
* - MNS_MODELESS
- * - MNS_NOTIFYBYPOS
*/
#include "config.h"
@@ -2450,7 +2449,13 @@ static INT MENU_ExecFocusedItem( MTRACKE
PostMessageW( pmt->hOwnerWnd, WM_SYSCOMMAND, item->wID,
MAKELPARAM((INT16)pmt->pt.x, (INT16)pmt->pt.y) );
else
- PostMessageW( pmt->hOwnerWnd, WM_COMMAND, item->wID, 0 );
+ {
+ if (menu->dwStyle & MNS_NOTIFYBYPOS)
+ PostMessageW( pmt->hOwnerWnd, WM_MENUCOMMAND, menu->FocusedItem,
+ (LPARAM)hMenu);
+ else
+ PostMessageW( pmt->hOwnerWnd, WM_COMMAND, item->wID, 0 );
+ }
}
return item->wID;
}
@@ -4901,7 +4906,7 @@ BOOL WINAPI SetMenuInfo (HMENU hMenu, LP
if (menu->dwStyle & MNS_AUTODISMISS) FIXME("MNS_AUTODISMISS unimplemented\n");
if (menu->dwStyle & MNS_DRAGDROP) FIXME("MNS_DRAGDROP unimplemented\n");
if (menu->dwStyle & MNS_MODELESS) FIXME("MNS_MODELESS unimplemented\n");
- if (menu->dwStyle & MNS_NOTIFYBYPOS) FIXME("MNS_NOTIFYBYPOS unimplemented\n");
+ if (menu->dwStyle & MNS_NOTIFYBYPOS) FIXME("MNS_NOTIFYBYPOS partially implemented\n");
}
return TRUE;
More information about the wine-cvs
mailing list