[Explorer]

- Restore the original four virtual window support. See CORE-6151.

svn path=/trunk/; revision=65491
This commit is contained in:
James Tabor 2014-11-26 15:29:51 +00:00
parent 556eadf871
commit 8da4894280
2 changed files with 6 additions and 4 deletions

View file

@ -235,7 +235,7 @@ typedef Desktop DesktopRef;
#endif
#define DESKTOP_COUNT 2
#define DESKTOP_COUNT 4
struct Desktops : public vector<DesktopRef>
{

View file

@ -145,8 +145,8 @@ LRESULT DesktopBar::Init(LPCREATESTRUCT pcs)
TCHAR QuickLaunchBand[] = _T("Quicklaunch");
rbBand.lpText = QuickLaunchBand;
rbBand.hwndChild = _hwndQuickLaunch;
rbBand.cx = 100;
rbBand.cxMinChild = 100;
rbBand.cx = 150;
rbBand.cxMinChild = 150;
rbBand.wID = IDW_QUICKLAUNCHBAR;
SendMessage(_hwndrebar, RB_INSERTBAND, (WPARAM)-1, (LPARAM)&rbBand);
@ -451,7 +451,9 @@ int DesktopBar::Command(int id, int code)
break;
case ID_SWITCH_DESKTOP_1:
case ID_SWITCH_DESKTOP_1+1: {
case ID_SWITCH_DESKTOP_1+1:
case ID_SWITCH_DESKTOP_1+2:
case ID_SWITCH_DESKTOP_1+3: {
int desktop_idx = id - ID_SWITCH_DESKTOP_1;
g_Globals._desktops.SwitchToDesktop(desktop_idx);