adjust start button to text size
authorMartin Fuchs <fuchs.martin@gmail.com>
Fri, 12 Mar 2004 21:12:28 +0000 (21:12 +0000)
committerMartin Fuchs <fuchs.martin@gmail.com>
Fri, 12 Mar 2004 21:12:28 +0000 (21:12 +0000)
svn path=/branches/lean-explorer/; revision=8668

reactos/subsys/system/explorer/Makefile
reactos/subsys/system/explorer/Makefile.MinGW
reactos/subsys/system/explorer/desktop/desktop.cpp
reactos/subsys/system/explorer/taskbar/startmenu.cpp
reactos/subsys/system/explorer/taskbar/taskbar.cpp

index 37a9af9..cb6c47a 100644 (file)
@@ -89,7 +89,7 @@ OBJECTS = \
        quicklaunch.o \
        settings.o
 
-LIBS = gdi32 comctl32 ole32 uuid wsock32
+LIBS = gdi32 comctl32 ole32 uuid
 
 .PHONY: all depends implib clean install dist bootcd depends
 
index 10d4789..6d6d5bb 100644 (file)
@@ -63,7 +63,7 @@ OBJECTS = \
        quicklaunch.o \
        settings.o
 
-LIBS = gdi32 comctl32 ole32 uuid wsock32
+LIBS = gdi32 comctl32 ole32 uuid
 
 all: $(TARGET)
 
index 4991e57..432b302 100644 (file)
@@ -78,11 +78,9 @@ void Desktops::SwitchToDesktop(int idx)
        if (_current_desktop == idx)
                return;
 
-       Desktop& desktop = (*this)[idx];
-
-        // save currently visible application windows
        Desktop& old_desktop = (*this)[_current_desktop];
        WindowSet& windows = old_desktop._windows;
+       Desktop& desktop = (*this)[idx];
 
        windows.clear();
 
@@ -92,6 +90,7 @@ void Desktops::SwitchToDesktop(int idx)
                for(WindowSet::const_iterator it2=it1->_windows.begin(); it2!=it1->_windows.end(); ++it2)
                        other_wnds.insert(*it2);
 
+        // save currently visible application windows
        EnumWindows(SwitchDesktopEnumFct, (LPARAM)&windows);
 
        old_desktop._hwndForeground = (HWND)SendMessage(g_Globals._hwndDesktopBar, PM_GET_LAST_ACTIVE, 0, 0);
index 36b3152..6c7f323 100644 (file)
@@ -1804,6 +1804,6 @@ void RecentStartMenu::AddEntries()
                }
 
                dir.sort_directory(SORT_DATE);
-               AddShellEntries(dir, 16, smd._subfolders);      ///@todo read max. count of entries from registry
+               AddShellEntries(dir, RECENT_DOCS_COUNT, smd._subfolders);       ///@todo read max. count of entries from registry
        }
 }
index c843dce..f42f3ba 100644 (file)
@@ -69,9 +69,11 @@ HWND TaskBar::Create(HWND hwndParent)
 {
        ClientRect clnt(hwndParent);
 
+       int taskbar_pos = 80;   // This start position will be adjusted in DesktopBar::Resize().
+
        return Window::Create(WINDOW_CREATOR(TaskBar), 0,
                                                        BtnWindowClass(CLASSNAME_TASKBAR), TITLE_TASKBAR, WS_CHILD|WS_VISIBLE,
-                                                       TASKBAR_LEFT, 0, clnt.right-TASKBAR_LEFT-(NOTIFYAREA_WIDTH_DEF+1), clnt.bottom, hwndParent);
+                                                       taskbar_pos, 0, clnt.right-taskbar_pos-(NOTIFYAREA_WIDTH_DEF+1), clnt.bottom, hwndParent);
 }
 
 LRESULT TaskBar::Init(LPCREATESTRUCT pcs)