https://git.reactos.org/?p=reactos.git;a=commitdiff;h=488477d10d554041e6a35…
commit 488477d10d554041e6a357340d96c1daeb9ac70c
Author: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
AuthorDate: Sun Jan 28 22:38:48 2018 +0200
Commit: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
CommitDate: Sun Jan 28 22:38:48 2018 +0200
[EXPLORER] CTrayNotifyWnd: Fix resizing when the clock is hidden
---
base/shell/explorer/trayntfy.cpp | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/base/shell/explorer/trayntfy.cpp b/base/shell/explorer/trayntfy.cpp
index 0a85685a6b..4326ca727e 100644
--- a/base/shell/explorer/trayntfy.cpp
+++ b/base/shell/explorer/trayntfy.cpp
@@ -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;
- }
+ POINT ptPager;
- ::SetWindowPos(m_hwndPager,
- NULL,
- ptPager.x,
- ptPager.y,
- szTrayNotify.cx,
- szTrayNotify.cy,
- SWP_NOZORDER);
+ 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)