[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); parentHWND = ::GetParent(parentHWND);
::GetClientRect(parentHWND, &windowRect); ::GetClientRect(parentHWND, &windowRect);
int VisibleButtonCount = Toolbar.GetVisibleButtonCount();
data = (PSYS_PAGER_COPY_DATA) cpData->lpData; data = (PSYS_PAGER_COPY_DATA) cpData->lpData;
iconData = &data->nicon_data; iconData = &data->nicon_data;
@ -530,11 +532,10 @@ public:
return FALSE; return FALSE;
} }
SendMessage(parentHWND, if (VisibleButtonCount != Toolbar.GetVisibleButtonCount())
WM_SIZE, {
0, SendMessage(parentHWND, WM_SIZE, 0, 0);
MAKELONG(windowRect.right - windowRect.left, }
windowRect.bottom - windowRect.top));
return ret; return ret;
} }