https://git.reactos.org/?p=reactos.git;a=commitdiff;h=556c485c8b7b9313af0b0b...
commit 556c485c8b7b9313af0b0b2aa03aa7304b991447 Author: Giannis Adamopoulos gadamopoulos@reactos.org AuthorDate: Mon Jan 29 22:32:17 2018 +0200 Commit: Giannis Adamopoulos gadamopoulos@reactos.org CommitDate: Mon Jan 29 22:32:17 2018 +0200
[EXPLORER] Improve the width of the taskbar clock Don't take into account TRAY_CLOCK_WND_SPACING_X twice Increase TRAY_CLOCK_WND_SPACING_X --- base/shell/explorer/trayclock.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/base/shell/explorer/trayclock.cpp b/base/shell/explorer/trayclock.cpp index 5236a9809c..0f7b36352c 100644 --- a/base/shell/explorer/trayclock.cpp +++ b/base/shell/explorer/trayclock.cpp @@ -146,7 +146,7 @@ const WCHAR szTrayClockWndClass[] = L"TrayClockWClass"; #define ID_TRAYCLOCK_TIMER 0 #define ID_TRAYCLOCK_TIMER_INIT 1
-#define TRAY_CLOCK_WND_SPACING_X 3 +#define TRAY_CLOCK_WND_SPACING_X 6 #define TRAY_CLOCK_WND_SPACING_Y 0
CTrayClockWnd::CTrayClockWnd() : @@ -307,8 +307,8 @@ WORD CTrayClockWnd::GetMinimumSize(IN BOOL Horizontal, IN OUT PSIZE pSize)
/* Increase maximum rectangle */ szMax.cy += LineSizes[i].cy; - if (LineSizes[i].cx > szMax.cx - (2 * TRAY_CLOCK_WND_SPACING_X)) - szMax.cx = LineSizes[i].cx + (2 * TRAY_CLOCK_WND_SPACING_X); + if (LineSizes[i].cx > szMax.cx) + szMax.cx = LineSizes[i].cx; } }