Author: gadamopoulos
Date: Tue Oct 28 14:18:16 2014
New Revision: 65070

URL: http://svn.reactos.org/svn/reactos?rev=65070&view=rev
Log:
[EXPLORER_NEW]
- Use IMenuPopup_OnSelect to close the start menu when the win key is pressed. 
- Fixes closing the start menu (on windows and on reactos)

Modified:
    branches/shell-experiments/base/shell/explorer-new/traywnd.c

Modified: branches/shell-experiments/base/shell/explorer-new/traywnd.c
URL: 
http://svn.reactos.org/svn/reactos/branches/shell-experiments/base/shell/explorer-new/traywnd.c?rev=65070&r1=65069&r2=65070&view=diff
==============================================================================
--- branches/shell-experiments/base/shell/explorer-new/traywnd.c        
[iso-8859-1] (original)
+++ branches/shell-experiments/base/shell/explorer-new/traywnd.c        
[iso-8859-1] Tue Oct 28 14:18:16 2014
@@ -2889,9 +2889,13 @@
                     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;
             }


Reply via email to