From 80aefab1f281c27e7c0e2a7aeaad6c006ca67dae Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Sat, 20 Dec 2014 22:11:35 +0000 Subject: [PATCH] [EXPLORER] * Fix the fallback case when BCM_GETIDEALSIZE doesn't work. * Take into account the size of the borders of the start button twice. Now the caption has enough space and doesn't hide part of the border and more importantly the button is vertically aligned to the tasks buttons. svn path=/trunk/; revision=65780 --- reactos/base/shell/explorer/traywnd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/base/shell/explorer/traywnd.cpp b/reactos/base/shell/explorer/traywnd.cpp index c31fcfa3b02..702e292a52b 100644 --- a/reactos/base/shell/explorer/traywnd.cpp +++ b/reactos/base/shell/explorer/traywnd.cpp @@ -102,8 +102,8 @@ public: if (m_ImageList == NULL || !SendMessageW(BCM_GETIDEALSIZE, 0, (LPARAM) &Size)) { - Size.cx = GetSystemMetrics(SM_CXEDGE); - Size.cy = GetSystemMetrics(SM_CYEDGE); + Size.cx = 2 * GetSystemMetrics(SM_CXEDGE); + Size.cy = 2 * GetSystemMetrics(SM_CYEDGE); if (hbmStart == NULL) {