mirror of
https://github.com/reactos/reactos.git
synced 2024-10-23 14:36:11 +00:00
resize taskbar buttons according to number of running applications
svn path=/trunk/; revision=8405
This commit is contained in:
parent
c22f36b23a
commit
fbd78a5a3a
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue