From 6402d5fa10888f7137e260b674da3e3b25df2296 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 2 Feb 2013 10:33:08 +0000 Subject: [PATCH] =?UTF-8?q?[EXPLORER=5FNEW]=20-=20Handle=20tray=20window?= =?UTF-8?q?=20notification=20to=20open=20start=20menu.=20By=20Edijs=20Kole?= =?UTF-8?q?snikovi=C4=8Ds=20&=20Gr=C3=A9gori=20Mac=C3=A1rio=20Harbs.=20COR?= =?UTF-8?q?E-6874=20#resolve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=58261 --- reactos/base/shell/explorer-new/precomp.h | 4 +++- reactos/base/shell/explorer-new/traywnd.c | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/base/shell/explorer-new/precomp.h b/reactos/base/shell/explorer-new/precomp.h index 11e6df1fa0e..d4e6ecb11f4 100644 --- a/reactos/base/shell/explorer-new/precomp.h +++ b/reactos/base/shell/explorer-new/precomp.h @@ -170,6 +170,8 @@ GetExplorerRegValueSet(IN HKEY hKey, * traywnd.c */ +#define TWM_OPENSTARTMENU (WM_USER + 260) + typedef HMENU (*PCREATECTXMENU)(IN HWND hWndOwner, IN PVOID *ppcmContext, IN PVOID Context OPTIONAL); @@ -426,7 +428,7 @@ TrayNotify_NotifyMsg(IN HWND hwnd, * taskswnd.c */ -#define TSWM_ENABLEGROUPING (WM_USER + 1) +#define TSWM_ENABLEGROUPING (WM_USER + 1) #define TSWM_UPDATETASKBARPOS (WM_USER + 2) BOOL diff --git a/reactos/base/shell/explorer-new/traywnd.c b/reactos/base/shell/explorer-new/traywnd.c index 194c9ff5e73..ca5b6ad8736 100644 --- a/reactos/base/shell/explorer-new/traywnd.c +++ b/reactos/base/shell/explorer-new/traywnd.c @@ -2532,6 +2532,10 @@ HandleTrayContextMenu: DestroyWindow(hwnd); break; + case TWM_OPENSTARTMENU: + SendMessage(This->hWnd, WM_COMMAND, MAKEWPARAM(BN_CLICKED, IDC_STARTBTN), (LPARAM)This->hwndStart); + break; + case WM_COMMAND: if ((HWND)lParam == This->hwndStart) {