mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
fix taksbar icons after closing previous applications
svn path=/trunk/; revision=8379
This commit is contained in:
parent
07405fb464
commit
de2e13a185
|
@ -388,8 +388,18 @@ void TaskBar::Refresh()
|
|||
TaskBarEntry& entry = it->second;
|
||||
|
||||
// adjust button indexes
|
||||
if (entry._btn_idx > idx)
|
||||
if (entry._btn_idx > idx) {
|
||||
--entry._btn_idx;
|
||||
--entry._bmp_idx;
|
||||
|
||||
TBBUTTONINFO info;
|
||||
|
||||
info.cbSize = sizeof(TBBUTTONINFO);
|
||||
info.dwMask = TBIF_IMAGE;
|
||||
info.iImage = entry._bmp_idx;
|
||||
|
||||
SendMessage(_htoolbar, TB_SETBUTTONINFO, entry._id, (LPARAM)&info);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue