From f005129274b3c08ba27dafc6b4ff807208a78427 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Sat, 25 Feb 2017 22:54:42 +0000 Subject: [PATCH] [EXPLORER] -Use the hacky way to paint the start button until BCM_GETIDEALSIZE is also implemented. svn path=/trunk/; revision=73915 --- reactos/base/shell/explorer/traywnd.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/reactos/base/shell/explorer/traywnd.cpp b/reactos/base/shell/explorer/traywnd.cpp index 815e532d5ab..9dc2ffcc48b 100644 --- a/reactos/base/shell/explorer/traywnd.cpp +++ b/reactos/base/shell/explorer/traywnd.cpp @@ -325,12 +325,16 @@ Cleanup: if (SendMessageW(BCM_SETIMAGELIST, 0, (LPARAM) &bil)) { - /* We're using the image list, remove the BS_BITMAP style and - don't center it horizontally */ - SetWindowStyle(m_hWnd, BS_BITMAP | BS_RIGHT, 0); + SIZE Size = { 0, 0 }; + if (SendMessageW(BCM_GETIDEALSIZE, 0, (LPARAM) &Size)) + { + /* We're using the image list, remove the BS_BITMAP style and + don't center it horizontally */ + SetWindowStyle(m_hWnd, BS_BITMAP | BS_RIGHT, 0); - UpdateSize(); - return; + UpdateSize(); + return; + } } /* Fall back to the deprecated method on older systems that don't