mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +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)
|
||||
{
|
||||
TBBUTTONINFO tbbiOld = { 0 };
|
||||
tbbiOld.cbSize = sizeof(tbbiOld);
|
||||
tbbiOld.dwMask = TBIF_BYINDEX | TBIF_IMAGE;
|
||||
|
||||
GetButtonInfo(index, &tbbiOld);
|
||||
|
||||
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)
|
||||
|
@ -209,6 +215,14 @@ public:
|
|||
if (index < 0)
|
||||
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);
|
||||
|
||||
if (!(notifyItem->dwState & NIS_HIDDEN))
|
||||
|
|
Loading…
Reference in a new issue