Author: dquintana Date: Tue Dec 23 01:55:48 2014 New Revision: 65805
URL: http://svn.reactos.org/svn/reactos?rev=65805&view=rev Log: [EXPLORER] * Fix count of visible buttons getting out of sync when removing buttons. Fixes empty space at the end of the notification toolbar. CORE-8840 #resolve #comment This should be fixed as of r65805.
Modified: trunk/reactos/base/shell/explorer/trayntfy.cpp
Modified: trunk/reactos/base/shell/explorer/trayntfy.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/trayntf... ============================================================================== --- trunk/reactos/base/shell/explorer/trayntfy.cpp [iso-8859-1] (original) +++ trunk/reactos/base/shell/explorer/trayntfy.cpp [iso-8859-1] Tue Dec 23 01:55:48 2014 @@ -132,7 +132,6 @@ tbBtn.fsState |= TBSTATE_HIDDEN; m_VisibleButtonCount--; } - }
/* TODO: support NIF_INFO, NIF_GUID, NIF_REALTIME, NIF_SHOWTIP */ @@ -209,6 +208,12 @@ return;
DeleteButton(index); + + if (!(notifyItem->dwState & NIS_HIDDEN)) + { + m_VisibleButtonCount--; + } + delete notifyItem; }