fixed create_bitmap_from_icon()

svn path=/trunk/; revision=5772
This commit is contained in:
Martin Fuchs 2003-08-22 21:14:31 +00:00
parent 7e8228e0c7
commit 0b414b7b38

View file

@ -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);