mirror of
https://github.com/reactos/reactos.git
synced 2024-06-27 08:21:31 +00:00
[0.4.9][EXPLORER] Fix for Start Button Wrong size when Using Themes (#4121) CORE-16742
CORE-16742 'Start button background in themes is scaled incorrectly' (especially MS Luna) The problem once was unhidden by 0.4.7-dev-705-g85ae842105
Fix picked from 0.4.15-dev-3441-g67ad4e7f60
This commit is contained in:
parent
175fa27755
commit
f4e30a974e
|
@ -1380,7 +1380,7 @@ ChangePos:
|
|||
else
|
||||
{
|
||||
WndSize.cx = StartBtnSize.cx;
|
||||
WndSize.cy = StartBtnSize.cy - EdgeSize.cx;
|
||||
WndSize.cy = StartBtnSize.cy - EdgeSize.cy;
|
||||
}
|
||||
|
||||
if (WndSize.cx < g_TaskbarSettings.sr.Size.cx)
|
||||
|
@ -1446,14 +1446,13 @@ ChangePos:
|
|||
if (StartSize.cx > rcClient.right)
|
||||
StartSize.cx = rcClient.right;
|
||||
|
||||
if (!m_Theme)
|
||||
HWND hwndTaskToolbar = ::GetWindow(m_TaskSwitch, GW_CHILD);
|
||||
if (hwndTaskToolbar)
|
||||
{
|
||||
HWND hwndTaskToolbar = ::GetWindow(m_TaskSwitch, GW_CHILD);
|
||||
if (hwndTaskToolbar)
|
||||
{
|
||||
DWORD size = SendMessageW(hwndTaskToolbar, TB_GETBUTTONSIZE, 0, 0);
|
||||
StartSize.cy = HIWORD(size);
|
||||
}
|
||||
DWORD size = SendMessageW(hwndTaskToolbar, TB_GETBUTTONSIZE, 0, 0);
|
||||
|
||||
/* Themed button covers Edge area as well */
|
||||
StartSize.cy = HIWORD(size) + (m_Theme ? GetSystemMetrics(SM_CYEDGE) : 0);
|
||||
}
|
||||
|
||||
if (m_StartButton.m_hWnd != NULL)
|
||||
|
|
Loading…
Reference in a new issue