[COMCTL32] -Take into account the upper theme margin when drawing the icon so that...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 29 Jul 2017 08:52:04 +0000 (08:52 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 29 Jul 2017 08:52:04 +0000 (08:52 +0000)
svn path=/trunk/; revision=75437

reactos/dll/win32/comctl32/toolbar.c

index eeb805b..2c7d8bd 100644 (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,