mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[EXPLORER]
- Load default application icon and display it in the taskbar for windows that have no icon. Fixes "GetIconInfo failed" debug prints all over the place (and looks prettier). CORE-9211 #resolve svn path=/trunk/; revision=66333
This commit is contained in:
parent
ec53fab6c4
commit
873109862d
1 changed files with 4 additions and 0 deletions
|
@ -419,6 +419,8 @@ public:
|
|||
}
|
||||
|
||||
icon = GetWndIcon(TaskItem->hWnd);
|
||||
if (!icon)
|
||||
icon = static_cast<HICON>(LoadImage(NULL, MAKEINTRESOURCE(OIC_SAMPLE), IMAGE_ICON, 0, 0, LR_SHARED | LR_DEFAULTSIZE));
|
||||
TaskItem->IconIndex = ImageList_ReplaceIcon(m_ImageList, TaskItem->IconIndex, icon);
|
||||
tbbi.iImage = TaskItem->IconIndex;
|
||||
|
||||
|
@ -562,6 +564,8 @@ public:
|
|||
}
|
||||
|
||||
icon = GetWndIcon(TaskItem->hWnd);
|
||||
if (!icon)
|
||||
icon = static_cast<HICON>(LoadImage(NULL, MAKEINTRESOURCE(OIC_SAMPLE), IMAGE_ICON, 0, 0, LR_SHARED | LR_DEFAULTSIZE));
|
||||
TaskItem->IconIndex = ImageList_ReplaceIcon(m_ImageList, -1, icon);
|
||||
|
||||
tbBtn.iBitmap = TaskItem->IconIndex;
|
||||
|
|
Loading…
Reference in a new issue