mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user