mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +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);
|
||||
::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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue