resize taskbar buttons according to number of running applications

svn path=/trunk/; revision=8405
This commit is contained in:
Martin Fuchs 2004-02-26 19:47:39 +00:00
parent c22f36b23a
commit fbd78a5a3a
3 changed files with 6 additions and 1 deletions

View file

@ -126,7 +126,7 @@ LRESULT DesktopBar::Init(LPCREATESTRUCT pcs)
rbBand.cyMaxChild = 0;
rbBand.cyIntegral = DESKTOPBARBAR_HEIGHT;
rbBand.lpText = TEXT("Quicklaunchbar");
rbBand.lpText = TEXT("Quicklaunch");
rbBand.hwndChild = _hwndQuickLaunch;
rbBand.cxMinChild = 0;
rbBand.cyMinChild = HIWORD(SendMessage(_hwndQuickLaunch, TB_GETBUTTONSIZE, 0, 0)) + 2;

View file

@ -65,6 +65,7 @@ QuickLaunchBar::QuickLaunchBar(HWND hwnd)
SetWindowStyle(hwndToolTip, GetWindowStyle(hwndToolTip)|TTS_ALWAYSTIP);
// delay refresh to some time later
PostMessage(hwnd, PM_REFRESH, 0, 0);
}

View file

@ -38,6 +38,9 @@
#define TASKBAR_LEFT 70
//#define TASKBAR_AT_TOP
#define TASKBUTTONWIDTH_MIN 38
#define TASKBUTTONWIDTH_MAX 160
#define IDW_TASKTOOLBAR 100
@ -92,4 +95,5 @@ protected:
static BOOL CALLBACK EnumWndProc(HWND hwnd, LPARAM lparam);
void Refresh();
void ResizeButtons();
};