mirror of
https://github.com/reactos/reactos.git
synced 2025-05-27 21:18:15 +00:00
[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:
parent
4238f22396
commit
82b12ef4cf
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue