[EXPLORER_NEW]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Tue, 28 Oct 2014 14:18:16 +0000 (14:18 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Tue, 28 Oct 2014 14:18:16 +0000 (14:18 +0000)
- Use IMenuPopup_OnSelect to close the start menu when the win key is pressed.
- Fixes closing the start menu (on windows and on reactos)

svn path=/branches/shell-experiments/; revision=65070

base/shell/explorer-new/traywnd.c

index d05ae39..77c3c97 100644 (file)
@@ -2889,9 +2889,13 @@ HandleTrayContextMenu:
                     break;
 
                 if (IsWindowVisible(hwndStartMenu))
-                    SetWindowPos(hwndStartMenu, 0,0,0,0,0, SWP_HIDEWINDOW | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOZORDER);
+                {
+                    IMenuPopup_OnSelect(This->StartMenuPopup, MPOS_CANCELLEVEL);
+                }
                 else
+                {
                     SendMessage(This->hWnd, WM_COMMAND, MAKEWPARAM(BN_CLICKED, IDC_STARTBTN), (LPARAM)This->hwndStart);
+                }
 
                 break;
             }