mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 22:11:22 +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)
|
if (Tray != NULL)
|
||||||
{
|
{
|
||||||
|
RegisterHotKey(NULL, IDHK_RUN, MOD_WIN, 'R');
|
||||||
TrayMessageLoop(Tray);
|
TrayMessageLoop(Tray);
|
||||||
ITrayWindow_Release(Tray);
|
ITrayWindow_Release(Tray);
|
||||||
UnregisterTrayWindowClass();
|
UnregisterTrayWindowClass();
|
||||||
|
|
|
@ -128,6 +128,8 @@ CreateDropTarget(IN HWND hwndTarget,
|
||||||
* explorer.c
|
* explorer.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define IDHK_RUN 1 /* Win+R */
|
||||||
|
|
||||||
LONG
|
LONG
|
||||||
SetWindowStyle(IN HWND hWnd,
|
SetWindowStyle(IN HWND hWnd,
|
||||||
IN LONG dwStyleMask,
|
IN LONG dwStyleMask,
|
||||||
|
|
|
@ -2777,6 +2777,16 @@ TrayMessageLoop(IN OUT ITrayWindow *Tray)
|
||||||
if (!Ret || Ret == -1)
|
if (!Ret || Ret == -1)
|
||||||
break;
|
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 ||
|
if (This->StartMenuBand == NULL ||
|
||||||
IMenuBand_IsMenuMessage(This->StartMenuBand,
|
IMenuBand_IsMenuMessage(This->StartMenuBand,
|
||||||
&Msg) != S_OK)
|
&Msg) != S_OK)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue