[COMCTL32] -Take into account the upper theme margin when drawing the icon so that it doesn't look misplaced. This makes the themed taskbar buttons look more or less good despite the fact that we completely ignore the left and right margins.

svn path=/trunk/; revision=75437
This commit is contained in:
Giannis Adamopoulos 2017-07-29 08:52:04 +00:00
parent 91dda33431
commit 9e7f835989

View file

@ -1019,6 +1019,9 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, HDC hdc,
rcBitmap.left += ((rc.right - rc.left) - infoPtr->nBitmapWidth) / 2;
rcBitmap.top += infoPtr->szPadding.cy / 2;
#ifdef __REACTOS__
rcBitmap.top += infoPtr->themeMargins.cyTopHeight;
#endif
TRACE("iBitmap=%d, start=(%d,%d) w=%d, h=%d\n",
btnPtr->iBitmap, rcBitmap.left, rcBitmap.top,