mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[Explorer]
- Patch by Rodion overclocker@list.ru - Fixes Ctrl-Esc, see bug 968. - Fixes minimize all windows, see bug 6239. svn path=/trunk/; revision=56097
This commit is contained in:
parent
f88b8ad363
commit
a246d3918b
3 changed files with 9 additions and 4 deletions
|
@ -235,8 +235,11 @@ void Desktops::ToggleMinimize()
|
|||
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();
|
||||
}
|
||||
|
|
|
@ -140,9 +140,6 @@ LRESULT DesktopBar::Init(LPCREATESTRUCT pcs)
|
|||
|
||||
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 @@ void DesktopBar::RegisterHotkeys()
|
|||
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 @@ void DesktopBar::ProcessHotKey(int id_hotkey)
|
|||
g_Globals._desktops.ToggleMinimize();
|
||||
break;
|
||||
|
||||
case IDHK_STARTMENU:
|
||||
ShowOrHideStartMenu();
|
||||
break;
|
||||
///@todo implement all common hotkeys
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue