[EXPLORER] CTrayNotifyWnd: Fix resizing when the clock is hidden

This commit is contained in:
Giannis Adamopoulos 2018-01-28 22:38:48 +02:00
parent 85d7dd4f83
commit 488477d10d

View file

@ -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)