Author: gadamopoulos
Date: Sat Feb 25 22:54:42 2017
New Revision: 73915

URL: http://svn.reactos.org/svn/reactos?rev=73915&view=rev
Log:
[EXPLORER] -Use the hacky way to paint the start button until BCM_GETIDEALSIZE 
is also implemented.

Modified:
    trunk/reactos/base/shell/explorer/traywnd.cpp

Modified: trunk/reactos/base/shell/explorer/traywnd.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/traywnd.cpp?rev=73915&r1=73914&r2=73915&view=diff
==============================================================================
--- trunk/reactos/base/shell/explorer/traywnd.cpp       [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/traywnd.cpp       [iso-8859-1] Sat Feb 25 
22:54:42 2017
@@ -325,12 +325,16 @@
 
             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);
-
-                UpdateSize();
-                return;
+                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;
+                }
             }
 
             /* Fall back to the deprecated method on older systems that don't


Reply via email to