- Patch by Vincent Povirk, Handle undocumented WM_POPUPSYSTENNEBU message.

svn path=/trunk/; revision=36596
This commit is contained in:
James Tabor 2008-09-30 00:27:00 +00:00
parent 22ee49ac12
commit e0aeda5ed2
3 changed files with 15 additions and 1 deletions

View file

@ -1032,6 +1032,18 @@ User32DefWindowProc(HWND hWnd,
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);

View file

@ -559,7 +559,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",
"WM_PRINTCLIENT",
NULL, NULL, NULL, NULL, NULL, NULL, NULL,

View file

@ -1726,6 +1726,7 @@ extern "C" {
#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