mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:23:04 +00:00
[EXPLORER] CTrayNotifyWnd: Fix resizing when the clock is hidden
This commit is contained in:
parent
85d7dd4f83
commit
488477d10d
1 changed files with 21 additions and 21 deletions
|
@ -218,28 +218,28 @@ public:
|
||||||
szClock.cx,
|
szClock.cx,
|
||||||
szClock.cy,
|
szClock.cy,
|
||||||
SWP_NOZORDER);
|
SWP_NOZORDER);
|
||||||
|
|
||||||
POINT ptPager;
|
|
||||||
|
|
||||||
if (IsHorizontal)
|
|
||||||
{
|
|
||||||
ptPager.x = ContentMargin.cxLeftWidth;
|
|
||||||
ptPager.y = (pszClient->cy - szTrayNotify.cy)/2;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ptPager.x = (pszClient->cx - szTrayNotify.cx)/2;
|
|
||||||
ptPager.y = ContentMargin.cyTopHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
::SetWindowPos(m_hwndPager,
|
|
||||||
NULL,
|
|
||||||
ptPager.x,
|
|
||||||
ptPager.y,
|
|
||||||
szTrayNotify.cx,
|
|
||||||
szTrayNotify.cy,
|
|
||||||
SWP_NOZORDER);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
POINT ptPager;
|
||||||
|
|
||||||
|
if (IsHorizontal)
|
||||||
|
{
|
||||||
|
ptPager.x = ContentMargin.cxLeftWidth;
|
||||||
|
ptPager.y = (pszClient->cy - szTrayNotify.cy)/2;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ptPager.x = (pszClient->cx - szTrayNotify.cx)/2;
|
||||||
|
ptPager.y = ContentMargin.cyTopHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
::SetWindowPos(m_hwndPager,
|
||||||
|
NULL,
|
||||||
|
ptPager.x,
|
||||||
|
ptPager.y,
|
||||||
|
szTrayNotify.cx,
|
||||||
|
szTrayNotify.cy,
|
||||||
|
SWP_NOZORDER);
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT OnEraseBackground(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
LRESULT OnEraseBackground(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue