From 0b414b7b3837d8a4c9b1e137a961614b9541d7de Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Fri, 22 Aug 2003 21:14:31 +0000 Subject: [PATCH] fixed create_bitmap_from_icon() svn path=/trunk/; revision=5772 --- reactos/subsys/system/explorer/taskbar/taskbar.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/explorer/taskbar/taskbar.cpp b/reactos/subsys/system/explorer/taskbar/taskbar.cpp index 5a295a8b7c6..9f3496c8fe4 100644 --- a/reactos/subsys/system/explorer/taskbar/taskbar.cpp +++ b/reactos/subsys/system/explorer/taskbar/taskbar.cpp @@ -199,7 +199,12 @@ HBITMAP create_bitmap_from_icon(HICON hIcon, HBRUSH hbrush_bkgnd, HDC hdc_wnd) HDC hdc = CreateCompatibleDC(0); HBITMAP hbmp_org = SelectBitmap(hdc, hbmp); - DrawIconEx(hdc, 0, 0, hIcon, 16, 16, 0, hbrush_bkgnd, DI_IMAGE); + + RECT rect = {0, 0, 16, 16}; + FillRect(hdc, &rect, hbrush_bkgnd); + + DrawIconEx(hdc, 0, 0, hIcon, 16, 16, 0, hbrush_bkgnd, DI_NORMAL); + SelectBitmap(hdc, hbmp_org); DeleteDC(hdc);