https://git.reactos.org/?p=reactos.git;a=commitdiff;h=82b12ef4cf046f5d346d8…
commit 82b12ef4cf046f5d346d8f065dc47e98bc3c1654
Author: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
AuthorDate: Sat Oct 28 22:09:44 2017 +0300
[EXPLORER] CSysPagerWnd: Notify the CTrayWindow to reposition its children only when
the number of the icons shown in the notification area changes.
---
base/shell/explorer/trayntfy.cpp | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/base/shell/explorer/trayntfy.cpp b/base/shell/explorer/trayntfy.cpp
index c14e29161a..b79d41b5a3 100644
--- a/base/shell/explorer/trayntfy.cpp
+++ b/base/shell/explorer/trayntfy.cpp
@@ -510,6 +510,8 @@ public:
parentHWND = ::GetParent(parentHWND);
::GetClientRect(parentHWND, &windowRect);
+ int VisibleButtonCount = Toolbar.GetVisibleButtonCount();
+
data = (PSYS_PAGER_COPY_DATA) cpData->lpData;
iconData = &data->nicon_data;
@@ -530,11 +532,10 @@ public:
return FALSE;
}
- SendMessage(parentHWND,
- WM_SIZE,
- 0,
- MAKELONG(windowRect.right - windowRect.left,
- windowRect.bottom - windowRect.top));
+ if (VisibleButtonCount != Toolbar.GetVisibleButtonCount())
+ {
+ SendMessage(parentHWND, WM_SIZE, 0, 0);
+ }
return ret;
}