mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[EXPLORER_NEW]
- Open run dialog when Win+R was pressed. Patch by Edijs Kolesnikovičs. CORE-6863 #resolve svn path=/trunk/; revision=58127
This commit is contained in:
parent
d655fccbd2
commit
40d30b8b21
3 changed files with 13 additions and 0 deletions
|
@ -411,6 +411,7 @@ _tWinMain(IN HINSTANCE hInstance,
|
|||
|
||||
if (Tray != NULL)
|
||||
{
|
||||
RegisterHotKey(NULL, IDHK_RUN, MOD_WIN, 'R');
|
||||
TrayMessageLoop(Tray);
|
||||
ITrayWindow_Release(Tray);
|
||||
UnregisterTrayWindowClass();
|
||||
|
|
|
@ -128,6 +128,8 @@ CreateDropTarget(IN HWND hwndTarget,
|
|||
* explorer.c
|
||||
*/
|
||||
|
||||
#define IDHK_RUN 1 /* Win+R */
|
||||
|
||||
LONG
|
||||
SetWindowStyle(IN HWND hWnd,
|
||||
IN LONG dwStyleMask,
|
||||
|
|
|
@ -2777,6 +2777,16 @@ TrayMessageLoop(IN OUT ITrayWindow *Tray)
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue