mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
fix taksbar icons after closing previous applications
svn path=/trunk/; revision=8379
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user