Author: jimtabor
Date: Mon Sep 29 19:27:00 2008
New Revision: 36596
URL:
http://svn.reactos.org/svn/reactos?rev=36596&view=rev
Log:
- Patch by Vincent Povirk, Handle undocumented WM_POPUPSYSTENNEBU message.
Modified:
trunk/reactos/dll/win32/user32/windows/defwnd.c
trunk/reactos/dll/win32/user32/windows/spy.c
trunk/reactos/include/psdk/winuser.h
Modified: trunk/reactos/dll/win32/user32/windows/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/defwnd.c [iso-8859-1] Mon Sep 29 19:27:00 2008
@@ -1032,6 +1032,18 @@
return DefWndNCCalcSize(hWnd, (BOOL)wParam, (RECT*)lParam);
}
+ case WM_POPUPSYSTEMMENU:
+ {
+ /* This is an undocumented message used by the windows taskbar to
+ display the system menu of windows that belong to other processes. */
+ HMENU menu = GetSystemMenu(hWnd, FALSE);
+
+ if (menu)
+ TrackPopupMenu(menu, TPM_LEFTBUTTON|TPM_RIGHTBUTTON,
+ LOWORD(lParam), HIWORD(lParam), 0, hWnd, NULL);
+ return 0;
+ }
+
case WM_NCACTIVATE:
{
return DefWndNCActivate(hWnd, wParam);
Modified: trunk/reactos/dll/win32/user32/windows/spy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/s…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/spy.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/spy.c [iso-8859-1] Mon Sep 29 19:27:00 2008
@@ -559,7 +559,8 @@
"WM_PALETTEISCHANGING",
"WM_PALETTECHANGED",
"WM_HOTKEY", /* 0x0312 */
- NULL, NULL, NULL, NULL,
+ "WM_POPUPSYSTEMMENU", /* 0x0313 */
+ NULL, NULL, NULL,
"WM_PRINT",
"WM_PRINTCLIENT",
NULL, NULL, NULL, NULL, NULL, NULL, NULL,
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 [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winuser.h [iso-8859-1] Mon Sep 29 19:27:00 2008
@@ -1726,6 +1726,7 @@
#define WM_TIMECHANGE 30
#define WM_TIMER 275
#define WM_SYSTIMER 280
+#define WM_POPUPSYSTEMMENU 787
#define WM_UNDO 772
#define WM_USER 1024
#define WM_USERCHANGED 84