Author: tfaber
Date: Sun Jan  6 12:04:48 2013
New Revision: 58127

URL: http://svn.reactos.org/svn/reactos?rev=58127&view=rev
Log:
[EXPLORER_NEW]
- Open run dialog when Win+R was pressed. Patch by Edijs Kolesnikovičs.
CORE-6863 #resolve

Modified:
    trunk/reactos/base/shell/explorer-new/explorer.c
    trunk/reactos/base/shell/explorer-new/precomp.h
    trunk/reactos/base/shell/explorer-new/traywnd.c

Modified: trunk/reactos/base/shell/explorer-new/explorer.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/explorer.c?rev=58127&r1=58126&r2=58127&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer-new/explorer.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer-new/explorer.c [iso-8859-1] Sun Jan  6 
12:04:48 2013
@@ -411,6 +411,7 @@
 
     if (Tray != NULL)
     {
+        RegisterHotKey(NULL, IDHK_RUN, MOD_WIN, 'R');
         TrayMessageLoop(Tray);
         ITrayWindow_Release(Tray);
         UnregisterTrayWindowClass();

Modified: trunk/reactos/base/shell/explorer-new/precomp.h
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/precomp.h?rev=58127&r1=58126&r2=58127&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer-new/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer-new/precomp.h [iso-8859-1] Sun Jan  6 
12:04:48 2013
@@ -128,6 +128,8 @@
  * explorer.c
  */
 
+#define IDHK_RUN 1 /* Win+R */
+
 LONG
 SetWindowStyle(IN HWND hWnd,
                IN LONG dwStyleMask,

Modified: trunk/reactos/base/shell/explorer-new/traywnd.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer-new/traywnd.c?rev=58127&r1=58126&r2=58127&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer-new/traywnd.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer-new/traywnd.c [iso-8859-1] Sun Jan  6 
12:04:48 2013
@@ -2777,6 +2777,16 @@
         if (!Ret || Ret == -1)
             break;
 
+        if (Msg.message == WM_HOTKEY)
+        {
+            switch (Msg.wParam)
+            {
+                case IDHK_RUN: /* Win+R */
+                    CloseHandle(CreateThread(NULL, 0, RunFileDlgThread, This, 
0, NULL));
+                    break;
+            }
+        }
+
         if (This->StartMenuBand == NULL ||
             IMenuBand_IsMenuMessage(This->StartMenuBand,
                                     &Msg) != S_OK)


Reply via email to