[UXTHEME] -Draw the background glyph inside the content margins. CORE-6000

svn path=/trunk/; revision=74241
This commit is contained in:
Giannis Adamopoulos 2017-03-29 10:01:00 +00:00
parent f1421e61ad
commit 7fc8752aed

View file

@ -1051,7 +1051,19 @@ HRESULT WINAPI DrawThemeBackgroundEx(HTHEME hTheme, HDC hdc, int iPartId,
hr = E_FAIL;
}
if(SUCCEEDED(hr))
hr = UXTHEME_DrawGlyph(hTheme, hdc, iPartId, iStateId, &rt, opts);
{
RECT rcGlyph = *pRect;
MARGINS margin;
hr = GetThemeMargins(hTheme, hdc, iPartId, iStateId, TMT_CONTENTMARGINS, NULL, &margin);
if(SUCCEEDED(hr))
{
rcGlyph.left += margin.cxLeftWidth;
rcGlyph.right -= margin.cxRightWidth;
rcGlyph.top += margin.cyTopHeight;
rcGlyph.bottom -= margin.cyBottomHeight;
}
hr = UXTHEME_DrawGlyph(hTheme, hdc, iPartId, iStateId, &rcGlyph, opts);
}
if(opts->dwFlags & DTBG_CLIPRECT) {
if(hasClip == 0)
SelectClipRgn(hdc, NULL);