user32: Remember to draw the icon when SS_CENTERIMAGE is set.
This commit is contained in:
parent
5d72acf70b
commit
7aeefa305f
|
@ -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.top = (rc.bottom - rc.top) / 2 - info->nHeight / 2;
|
||||||
iconRect.right = iconRect.left + info->nWidth;
|
iconRect.right = iconRect.left + info->nWidth;
|
||||||
iconRect.bottom = iconRect.top + info->nHeight;
|
iconRect.bottom = iconRect.top + info->nHeight;
|
||||||
FillRect( hdc, &rc, hbrush );
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
FillRect( hdc, &rc, hbrush );
|
FillRect( hdc, &rc, hbrush );
|
||||||
DrawIconEx( hdc, rc.left, rc.top, hIcon, rc.right - rc.left,
|
DrawIconEx( hdc, rc.left, rc.top, hIcon, rc.right - rc.left,
|
||||||
rc.bottom - rc.top, 0, NULL, DI_NORMAL );
|
rc.bottom - rc.top, 0, NULL, DI_NORMAL );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (info) GlobalUnlock16(HICON_16(hIcon));
|
if (info) GlobalUnlock16(HICON_16(hIcon));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue