adjust start button to text size

svn path=/branches/lean-explorer/; revision=8668
This commit is contained in:
Martin Fuchs
2004-03-12 21:12:28 +00:00
parent 982fa99488
commit a16e73576f
5 changed files with 8 additions and 7 deletions
+1 -1
View 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
@@ -63,7 +63,7 @@ OBJECTS = \
quicklaunch.o \
settings.o
LIBS = gdi32 comctl32 ole32 uuid wsock32
LIBS = gdi32 comctl32 ole32 uuid
all: $(TARGET)
@@ -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);
@@ -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
}
}
@@ -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)