From 82b12ef4cf046f5d346d8f065dc47e98bc3c1654 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Sat, 28 Oct 2017 22:09:44 +0300 Subject: [PATCH] [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 c14e29161a2..b79d41b5a3e 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; }