user32: Remember to draw the icon when SS_CENTERIMAGE is set.

This commit is contained in:
Mike McCormack 2006-08-10 09:41:48 +09:00 committed by Alexandre Julliard
parent 5d72acf70b
commit 7aeefa305f
1 changed files with 4 additions and 8 deletions

View File

@ -759,15 +759,11 @@ static void STATIC_PaintIconfn( HWND hwnd, HDC hdc, DWORD style )
iconRect.top = (rc.bottom - rc.top) / 2 - info->nHeight / 2;
iconRect.right = iconRect.left + info->nWidth;
iconRect.bottom = iconRect.top + info->nHeight;
FillRect( hdc, &rc, hbrush );
}
else
{
FillRect( hdc, &rc, hbrush );
DrawIconEx( hdc, rc.left, rc.top, hIcon, rc.right - rc.left,
rc.bottom - rc.top, 0, NULL, DI_NORMAL );
}
}
if (info) GlobalUnlock16(HICON_16(hIcon));
}