mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[UXTHEME] -Draw the background glyph inside the content margins. CORE-6000
svn path=/trunk/; revision=74241
This commit is contained in:
parent
f1421e61ad
commit
7fc8752aed
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue