Commit a2742978 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

user32: Handle undocumented WM_POPUPSYSTEMMENU message.

parent d7ca73ce
......@@ -385,6 +385,18 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
}
break;
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 NC_HandleNCActivate( hwnd, wParam, lParam );
......
......@@ -592,7 +592,8 @@ static const char * const MessageTypeNames[SPY_MAX_MSGNUM + 1] =
"WM_PALETTEISCHANGING",
"WM_PALETTECHANGED",
"WM_HOTKEY", /* 0x0312 */
NULL, NULL, NULL, NULL,
"WM_POPUPSYSTEMMENU", /* 0x0313 */
NULL, NULL, NULL,
"WM_PRINT", /* 0x0317 */
"WM_PRINTCLIENT", /* 0x0318 */
"WM_APPCOMMAND", /* 0x0319 */
......
......@@ -82,6 +82,7 @@ static inline HLOCAL16 LOCAL_Free( HANDLE16 ds, HLOCAL16 handle )
#define GET_DWORD(ptr) (*(const DWORD *)(ptr))
#define WM_SYSTIMER 0x0118
#define WM_POPUPSYSTEMMENU 0x0313
/* internal messages codes */
enum wine_internal_message
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment