mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:52:56 +00:00
[EXPLORER]
* Remove old icons from the tray imagelist. svn path=/trunk/; revision=68893
This commit is contained in:
parent
4a52a2ec13
commit
332652615a
1 changed files with 15 additions and 1 deletions
|
@ -163,8 +163,14 @@ public:
|
||||||
|
|
||||||
if (iconData->uFlags & NIF_ICON)
|
if (iconData->uFlags & NIF_ICON)
|
||||||
{
|
{
|
||||||
|
TBBUTTONINFO tbbiOld = { 0 };
|
||||||
|
tbbiOld.cbSize = sizeof(tbbiOld);
|
||||||
|
tbbiOld.dwMask = TBIF_BYINDEX | TBIF_IMAGE;
|
||||||
|
|
||||||
|
GetButtonInfo(index, &tbbiOld);
|
||||||
|
|
||||||
tbbi.dwMask |= TBIF_IMAGE;
|
tbbi.dwMask |= TBIF_IMAGE;
|
||||||
tbbi.iImage = ImageList_AddIcon(m_ImageList, iconData->hIcon);
|
tbbi.iImage = ImageList_ReplaceIcon(m_ImageList, tbbiOld.iImage, iconData->hIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (iconData->uFlags & NIF_TIP)
|
if (iconData->uFlags & NIF_TIP)
|
||||||
|
@ -209,6 +215,14 @@ public:
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
TBBUTTONINFO tbbiOld = { 0 };
|
||||||
|
tbbiOld.cbSize = sizeof(tbbiOld);
|
||||||
|
tbbiOld.dwMask = TBIF_BYINDEX | TBIF_IMAGE;
|
||||||
|
|
||||||
|
GetButtonInfo(index, &tbbiOld);
|
||||||
|
|
||||||
|
ImageList_Remove(m_ImageList, tbbiOld.iImage);
|
||||||
|
|
||||||
DeleteButton(index);
|
DeleteButton(index);
|
||||||
|
|
||||||
if (!(notifyItem->dwState & NIS_HIDDEN))
|
if (!(notifyItem->dwState & NIS_HIDDEN))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue