mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:35:40 +00:00
[EXPLORER] Fix for Start Button Wrong size when Using Themes (#4121) CORE-16742
The problem once was unhidden by
0.4.7-dev-705-g 85ae842105
This commit is contained in:
parent
915569a8de
commit
67ad4e7f60
1 changed files with 7 additions and 8 deletions
|
@ -1562,7 +1562,7 @@ ChangePos:
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WndSize.cx = StartBtnSize.cx;
|
WndSize.cx = StartBtnSize.cx;
|
||||||
WndSize.cy = StartBtnSize.cy - EdgeSize.cx;
|
WndSize.cy = StartBtnSize.cy - EdgeSize.cy;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (WndSize.cx < g_TaskbarSettings.sr.Size.cx)
|
if (WndSize.cx < g_TaskbarSettings.sr.Size.cx)
|
||||||
|
@ -1628,14 +1628,13 @@ ChangePos:
|
||||||
if (StartSize.cx > rcClient.right)
|
if (StartSize.cx > rcClient.right)
|
||||||
StartSize.cx = rcClient.right;
|
StartSize.cx = rcClient.right;
|
||||||
|
|
||||||
if (!m_Theme)
|
|
||||||
{
|
|
||||||
HWND hwndTaskToolbar = ::GetWindow(m_TaskSwitch, GW_CHILD);
|
HWND hwndTaskToolbar = ::GetWindow(m_TaskSwitch, GW_CHILD);
|
||||||
if (hwndTaskToolbar)
|
if (hwndTaskToolbar)
|
||||||
{
|
{
|
||||||
DWORD size = SendMessageW(hwndTaskToolbar, TB_GETBUTTONSIZE, 0, 0);
|
DWORD size = SendMessageW(hwndTaskToolbar, TB_GETBUTTONSIZE, 0, 0);
|
||||||
StartSize.cy = HIWORD(size);
|
|
||||||
}
|
/* Themed button covers Edge area as well */
|
||||||
|
StartSize.cy = HIWORD(size) + (m_Theme ? GetSystemMetrics(SM_CYEDGE) : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_StartButton.m_hWnd != NULL)
|
if (m_StartButton.m_hWnd != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue