mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 09:59:44 +00:00
[EXPLORER] -Use the hacky way to paint the start button until BCM_GETIDEALSIZE is also implemented.
svn path=/trunk/; revision=73915
This commit is contained in:
parent
e7f1aefdb9
commit
f005129274
|
@ -325,12 +325,16 @@ Cleanup:
|
||||||
|
|
||||||
if (SendMessageW(BCM_SETIMAGELIST, 0, (LPARAM) &bil))
|
if (SendMessageW(BCM_SETIMAGELIST, 0, (LPARAM) &bil))
|
||||||
{
|
{
|
||||||
/* We're using the image list, remove the BS_BITMAP style and
|
SIZE Size = { 0, 0 };
|
||||||
don't center it horizontally */
|
if (SendMessageW(BCM_GETIDEALSIZE, 0, (LPARAM) &Size))
|
||||||
SetWindowStyle(m_hWnd, BS_BITMAP | BS_RIGHT, 0);
|
{
|
||||||
|
/* 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();
|
UpdateSize();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fall back to the deprecated method on older systems that don't
|
/* Fall back to the deprecated method on older systems that don't
|
||||||
|
|
Loading…
Reference in a new issue