https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2cc893f514240d1cadd4c5...
commit 2cc893f514240d1cadd4c51225a27c724fe17595 Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Fri Dec 24 07:24:33 2021 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Fri Dec 24 07:26:11 2021 +0900
[EXPLORER] Adjust AUTOHIDE size
GetSystemMetrics(SM_CXBORDER) is too thin. CORE-17927 --- base/shell/explorer/traywnd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/base/shell/explorer/traywnd.cpp b/base/shell/explorer/traywnd.cpp index 0f3005ca950..0bcb6d81327 100644 --- a/base/shell/explorer/traywnd.cpp +++ b/base/shell/explorer/traywnd.cpp @@ -1869,8 +1869,8 @@ ChangePos:
void ProcessAutoHide() { - INT w = m_TraySize.cx - GetSystemMetrics(SM_CXBORDER) * 2 - 1; - INT h = m_TraySize.cy - GetSystemMetrics(SM_CYBORDER) * 2 - 1; + INT w = m_TraySize.cx - (GetSystemMetrics(SM_CXSIZEFRAME) + GetSystemMetrics(SM_CXEDGE)); + INT h = m_TraySize.cy - (GetSystemMetrics(SM_CYSIZEFRAME) + GetSystemMetrics(SM_CYEDGE));
switch (m_AutoHideState) {