mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
fixed create_bitmap_from_icon()
svn path=/trunk/; revision=5772
This commit is contained in:
parent
7e8228e0c7
commit
0b414b7b38
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue