mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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.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);
|
||||
}
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue