[EXPLORER] CSysPagerWnd: Notify the CTrayWindow to reposition its children only when the number of the icons shown in the notification area changes.

This commit is contained in:
Giannis Adamopoulos 2017-10-28 22:09:44 +03:00
parent 4238f22396
commit 82b12ef4cf

View file

@ -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;
}