[ros-diffs] [jimtabor] 56097: [Explorer] - Patch by Rodion overclocker at list.ru - Fixes Ctrl-Esc, see bug 968. - Fixes minimize all windows, see bug 6239.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Sat Mar 10 03:21:58 UTC 2012


Author: jimtabor
Date: Sat Mar 10 03:21:57 2012
New Revision: 56097

URL: http://svn.reactos.org/svn/reactos?rev=56097&view=rev
Log:
[Explorer]
- Patch by Rodion overclocker at list.ru
- Fixes Ctrl-Esc, see bug 968.
- Fixes minimize all windows, see bug 6239.

Modified:
    trunk/reactos/base/shell/explorer/desktop/desktop.cpp
    trunk/reactos/base/shell/explorer/taskbar/desktopbar.cpp
    trunk/reactos/base/shell/explorer/taskbar/desktopbar.h

Modified: trunk/reactos/base/shell/explorer/desktop/desktop.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/desktop/desktop.cpp?rev=56097&r1=56096&r2=56097&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer/desktop/desktop.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/desktop/desktop.cpp [iso-8859-1] Sat Mar 10 03:21:57 2012
@@ -235,8 +235,11 @@
 	if (minimized.empty()) {
 		EnumWindows(MinimizeDesktopEnumFct, (LPARAM)&minimized);
 	} else {
-		for(list<MinimizeStruct>::const_iterator it=minimized.begin(); it!=minimized.end(); ++it)
+		for(list<MinimizeStruct>::const_reverse_iterator it=minimized.rbegin(); 
+															it!=minimized.rend(); ++it) {
 			ShowWindowAsync(it->first, it->second&WS_MAXIMIZE? SW_MAXIMIZE: SW_RESTORE);
+			Sleep(20);
+		}
 
 		minimized.clear();
 	}

Modified: trunk/reactos/base/shell/explorer/taskbar/desktopbar.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/taskbar/desktopbar.cpp?rev=56097&r1=56096&r2=56097&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer/taskbar/desktopbar.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/taskbar/desktopbar.cpp [iso-8859-1] Sat Mar 10 03:21:57 2012
@@ -140,9 +140,6 @@
 
 	rbBand.cbSize = sizeof(REBARBANDINFO);
 	rbBand.fMask  = RBBIM_TEXT|RBBIM_STYLE|RBBIM_CHILD|RBBIM_CHILDSIZE|RBBIM_SIZE|RBBIM_ID|RBBIM_IDEALSIZE;
-#ifndef RBBS_HIDETITLE // missing in MinGW headers as of 25.02.2004
-#define RBBS_HIDETITLE	0x400
-#endif
 	rbBand.cyChild = REBARBAND_HEIGHT;
 	rbBand.cyMaxChild = (ULONG)-1;
 	rbBand.cyMinChild = REBARBAND_HEIGHT;
@@ -249,6 +246,7 @@
 	RegisterHotKey(_hwnd, IDHK_RUN, MOD_WIN, 'R');
 	RegisterHotKey(_hwnd, IDHK_DESKTOP, MOD_WIN, 'D');
 	RegisterHotKey(_hwnd, IDHK_LOGOFF, MOD_WIN, 'L');
+	RegisterHotKey(_hwnd, IDHK_STARTMENU, MOD_CONTROL, VK_ESCAPE);
 
 		///@todo register all common hotkeys
 }
@@ -272,6 +270,9 @@
 			g_Globals._desktops.ToggleMinimize();
 			break;
 
+		case IDHK_STARTMENU:
+			ShowOrHideStartMenu();
+			break;
 		///@todo implement all common hotkeys
 	}
 }

Modified: trunk/reactos/base/shell/explorer/taskbar/desktopbar.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/taskbar/desktopbar.h?rev=56097&r1=56096&r2=56097&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer/taskbar/desktopbar.h [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/taskbar/desktopbar.h [iso-8859-1] Sat Mar 10 03:21:57 2012
@@ -68,6 +68,7 @@
 #define IDHK_RUN 1
 #define IDHK_DESKTOP 2
 #define IDHK_LOGOFF 3
+#define IDHK_STARTMENU 4
 
  /// desktop bar window, also known as "system tray"
 struct DesktopBar : public




More information about the Ros-diffs mailing list