mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
- launch task manager
- set foregroundwindow when opening start menu (CTRL-ESC shortcut) svn path=/branches/lean-explorer/; revision=8353
This commit is contained in:
@@ -107,7 +107,8 @@
|
||||
#define ID_STOP 40009
|
||||
#define ID_MINIMIZE_ALL 40010
|
||||
#define ID_EXPLORE 40011
|
||||
#define ID_SWITCH_DESKTOP_1 40012
|
||||
#define ID_SWITCH_DESKTOP_1 50000
|
||||
#define ID_TASKMGR 40012
|
||||
#define ID_WINDOW_NEW 0xE130
|
||||
#define ID_EDIT_PROPERTIES 57656
|
||||
#define ID_FILE_EXIT 0xE141
|
||||
|
||||
@@ -409,6 +409,7 @@ BEGIN
|
||||
BEGIN
|
||||
MENUITEM "&About Explorer...", ID_ABOUT_EXPLORER
|
||||
MENUITEM "&Settings...", ID_DESKTOPBAR_SETTINGS
|
||||
MENUITEM "&Task Manager...", ID_TASKMGR
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
@@ -245,6 +245,10 @@ int DesktopBar::Command(int id, int code)
|
||||
explorer_show_frame(SW_SHOWNORMAL);
|
||||
break;
|
||||
|
||||
case ID_TASKMGR:
|
||||
launch_file(_hwnd, TEXT("taskmgr.exe"), SW_SHOWNORMAL);
|
||||
break;
|
||||
|
||||
case ID_SWITCH_DESKTOP_1:
|
||||
case ID_SWITCH_DESKTOP_1+1:
|
||||
case ID_SWITCH_DESKTOP_1+2:
|
||||
|
||||
@@ -1359,6 +1359,7 @@ void StartMenuRoot::TrackStartmenu()
|
||||
|
||||
// show previously hidden start menu
|
||||
ShowWindow(hwnd, SW_SHOW);
|
||||
SetForegroundWindow(hwnd);
|
||||
|
||||
while(IsWindow(hwnd)) {
|
||||
if (!GetMessage(&msg, 0, 0, 0)) {
|
||||
|
||||
Reference in New Issue
Block a user